2000-11-04 08:21:20 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 11:12:37 +00:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-11-04 08:21:20 +00:00
|
|
|
|
|
|
|
#ifndef nsPIWindowRoot_h__
|
|
|
|
#define nsPIWindowRoot_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
2013-01-29 13:44:01 +00:00
|
|
|
#include "mozilla/dom/EventTarget.h"
|
2000-11-04 08:21:20 +00:00
|
|
|
|
2010-02-20 16:07:03 +00:00
|
|
|
class nsPIDOMWindow;
|
|
|
|
class nsIControllers;
|
|
|
|
class nsIController;
|
2000-11-04 08:21:20 +00:00
|
|
|
|
|
|
|
#define NS_IWINDOWROOT_IID \
|
2013-05-30 21:46:39 +00:00
|
|
|
{ 0x3f71f50c, 0xa7e0, 0x43bc, \
|
|
|
|
{ 0xac, 0x25, 0x4d, 0xbb, 0x88, 0x7b, 0x21, 0x09 } }
|
2000-11-04 08:21:20 +00:00
|
|
|
|
2013-01-29 13:44:01 +00:00
|
|
|
class nsPIWindowRoot : public mozilla::dom::EventTarget
|
2011-06-24 02:17:58 +00:00
|
|
|
{
|
2000-11-04 08:21:20 +00:00
|
|
|
public:
|
2005-11-11 14:36:26 +00:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWROOT_IID)
|
2000-11-04 08:21:20 +00:00
|
|
|
|
2010-02-20 16:07:03 +00:00
|
|
|
virtual nsPIDOMWindow* GetWindow()=0;
|
2007-07-06 13:47:50 +00:00
|
|
|
|
2010-08-09 16:17:19 +00:00
|
|
|
// get and set the node that is the context of a popup menu
|
|
|
|
virtual nsIDOMNode* GetPopupNode() = 0;
|
2010-02-20 16:07:03 +00:00
|
|
|
virtual void SetPopupNode(nsIDOMNode* aNode) = 0;
|
|
|
|
|
|
|
|
virtual nsresult GetControllerForCommand(const char *aCommand,
|
|
|
|
nsIController** aResult) = 0;
|
|
|
|
virtual nsresult GetControllers(nsIControllers** aResult) = 0;
|
2010-02-20 17:05:20 +00:00
|
|
|
|
2013-04-06 00:44:15 +00:00
|
|
|
virtual void SetParentTarget(mozilla::dom::EventTarget* aTarget) = 0;
|
|
|
|
virtual mozilla::dom::EventTarget* GetParentTarget() = 0;
|
2013-05-30 21:46:39 +00:00
|
|
|
virtual nsIDOMWindow* GetOwnerGlobal() MOZ_OVERRIDE = 0;
|
2000-11-04 08:21:20 +00:00
|
|
|
};
|
|
|
|
|
2005-11-11 14:36:26 +00:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsPIWindowRoot, NS_IWINDOWROOT_IID)
|
|
|
|
|
2000-11-04 08:21:20 +00:00
|
|
|
#endif // nsPIWindowRoot_h__
|