dom/base/nsPIWindowRoot.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/base/nsPIWindowRoot.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#ifndef nsPIWindowRoot_h__
    1.11 +#define nsPIWindowRoot_h__
    1.12 +
    1.13 +#include "nsISupports.h"
    1.14 +#include "mozilla/dom/EventTarget.h"
    1.15 +
    1.16 +class nsPIDOMWindow;
    1.17 +class nsIControllers;
    1.18 +class nsIController;
    1.19 +
    1.20 +#define NS_IWINDOWROOT_IID \
    1.21 +{ 0x3f71f50c, 0xa7e0, 0x43bc, \
    1.22 + { 0xac, 0x25, 0x4d, 0xbb, 0x88, 0x7b, 0x21, 0x09 } }
    1.23 +
    1.24 +class nsPIWindowRoot : public mozilla::dom::EventTarget
    1.25 +{
    1.26 +public:
    1.27 +  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWROOT_IID)
    1.28 +
    1.29 +  virtual nsPIDOMWindow* GetWindow()=0;
    1.30 +
    1.31 +  // get and set the node that is the context of a popup menu
    1.32 +  virtual nsIDOMNode* GetPopupNode() = 0;
    1.33 +  virtual void SetPopupNode(nsIDOMNode* aNode) = 0;
    1.34 +
    1.35 +  virtual nsresult GetControllerForCommand(const char *aCommand,
    1.36 +                                           nsIController** aResult) = 0;
    1.37 +  virtual nsresult GetControllers(nsIControllers** aResult) = 0;
    1.38 +
    1.39 +  virtual void SetParentTarget(mozilla::dom::EventTarget* aTarget) = 0;
    1.40 +  virtual mozilla::dom::EventTarget* GetParentTarget() = 0;
    1.41 +  virtual nsIDOMWindow* GetOwnerGlobal() MOZ_OVERRIDE = 0;
    1.42 +};
    1.43 +
    1.44 +NS_DEFINE_STATIC_IID_ACCESSOR(nsPIWindowRoot, NS_IWINDOWROOT_IID)
    1.45 +
    1.46 +#endif // nsPIWindowRoot_h__

mercurial