2000-11-04 11:21:20 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04: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 11:21:20 +03:00
|
|
|
|
|
|
|
#ifndef nsPIWindowRoot_h__
|
|
|
|
#define nsPIWindowRoot_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
2011-06-24 06:18:00 +04:00
|
|
|
#include "nsIDOMEventTarget.h"
|
2000-11-04 11:21:20 +03:00
|
|
|
|
2010-02-20 19:07:03 +03:00
|
|
|
class nsPIDOMWindow;
|
|
|
|
class nsIControllers;
|
|
|
|
class nsIController;
|
2010-02-20 20:05:20 +03:00
|
|
|
struct JSContext;
|
2000-11-04 11:21:20 +03:00
|
|
|
|
2010-08-09 20:17:19 +04:00
|
|
|
// 426C1B56-E38A-435E-B291-BE1557F2A0A2
|
2000-11-04 11:21:20 +03:00
|
|
|
#define NS_IWINDOWROOT_IID \
|
2011-11-25 05:09:58 +04:00
|
|
|
{ 0xc89780f2, 0x8905, 0x417f, \
|
|
|
|
{ 0xa6, 0x62, 0xf6, 0xc, 0xa6, 0xd7, 0xc, 0x91 } }
|
2000-11-04 11:21:20 +03:00
|
|
|
|
2011-06-24 06:17:58 +04:00
|
|
|
class nsPIWindowRoot : public nsIDOMEventTarget
|
|
|
|
{
|
2000-11-04 11:21:20 +03:00
|
|
|
public:
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWINDOWROOT_IID)
|
2000-11-04 11:21:20 +03:00
|
|
|
|
2010-02-20 19:07:03 +03:00
|
|
|
virtual nsPIDOMWindow* GetWindow()=0;
|
2007-07-06 17:47:50 +04:00
|
|
|
|
2010-08-09 20:17:19 +04:00
|
|
|
// get and set the node that is the context of a popup menu
|
|
|
|
virtual nsIDOMNode* GetPopupNode() = 0;
|
2010-02-20 19:07:03 +03: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 20:05:20 +03:00
|
|
|
|
2011-06-24 06:18:00 +04:00
|
|
|
virtual void SetParentTarget(nsIDOMEventTarget* aTarget) = 0;
|
|
|
|
virtual nsIDOMEventTarget* GetParentTarget() = 0;
|
2000-11-04 11:21:20 +03:00
|
|
|
};
|
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsPIWindowRoot, NS_IWINDOWROOT_IID)
|
|
|
|
|
2000-11-04 11:21:20 +03:00
|
|
|
#endif // nsPIWindowRoot_h__
|