nsIRootBox.h 910 B

12345678910111213141516171819202122232425262728293031323334
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #ifndef nsIRootBox_h___
  6. #define nsIRootBox_h___
  7. #include "nsQueryFrame.h"
  8. class nsPopupSetFrame;
  9. class nsIContent;
  10. class nsIPresShell;
  11. class nsIRootBox
  12. {
  13. public:
  14. NS_DECL_QUERYFRAME_TARGET(nsIRootBox)
  15. virtual nsPopupSetFrame* GetPopupSetFrame() = 0;
  16. virtual void SetPopupSetFrame(nsPopupSetFrame* aPopupSet) = 0;
  17. virtual nsIContent* GetDefaultTooltip() = 0;
  18. virtual void SetDefaultTooltip(nsIContent* aTooltip) = 0;
  19. virtual nsresult AddTooltipSupport(nsIContent* aNode) = 0;
  20. virtual nsresult RemoveTooltipSupport(nsIContent* aNode) = 0;
  21. static nsIRootBox* GetRootBox(nsIPresShell* aShell);
  22. };
  23. #endif