Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef nsPIWindowRoot_h__ |
michael@0 | 8 | #define nsPIWindowRoot_h__ |
michael@0 | 9 | |
michael@0 | 10 | #include "nsISupports.h" |
michael@0 | 11 | #include "mozilla/dom/EventTarget.h" |
michael@0 | 12 | |
michael@0 | 13 | class nsPIDOMWindow; |
michael@0 | 14 | class nsIControllers; |
michael@0 | 15 | class nsIController; |
michael@0 | 16 | |
michael@0 | 17 | #define NS_IWINDOWROOT_IID \ |
michael@0 | 18 | { 0x3f71f50c, 0xa7e0, 0x43bc, \ |
michael@0 | 19 | { 0xac, 0x25, 0x4d, 0xbb, 0x88, 0x7b, 0x21, 0x09 } } |
michael@0 | 20 | |
michael@0 | 21 | class nsPIWindowRoot : public mozilla::dom::EventTarget |
michael@0 | 22 | { |
michael@0 | 23 | public: |
michael@0 | 24 | NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWROOT_IID) |
michael@0 | 25 | |
michael@0 | 26 | virtual nsPIDOMWindow* GetWindow()=0; |
michael@0 | 27 | |
michael@0 | 28 | // get and set the node that is the context of a popup menu |
michael@0 | 29 | virtual nsIDOMNode* GetPopupNode() = 0; |
michael@0 | 30 | virtual void SetPopupNode(nsIDOMNode* aNode) = 0; |
michael@0 | 31 | |
michael@0 | 32 | virtual nsresult GetControllerForCommand(const char *aCommand, |
michael@0 | 33 | nsIController** aResult) = 0; |
michael@0 | 34 | virtual nsresult GetControllers(nsIControllers** aResult) = 0; |
michael@0 | 35 | |
michael@0 | 36 | virtual void SetParentTarget(mozilla::dom::EventTarget* aTarget) = 0; |
michael@0 | 37 | virtual mozilla::dom::EventTarget* GetParentTarget() = 0; |
michael@0 | 38 | virtual nsIDOMWindow* GetOwnerGlobal() MOZ_OVERRIDE = 0; |
michael@0 | 39 | }; |
michael@0 | 40 | |
michael@0 | 41 | NS_DEFINE_STATIC_IID_ACCESSOR(nsPIWindowRoot, NS_IWINDOWROOT_IID) |
michael@0 | 42 | |
michael@0 | 43 | #endif // nsPIWindowRoot_h__ |