2004-07-16 21:03:10 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; 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/. */
|
1999-12-02 09:14:49 +03:00
|
|
|
|
2004-07-16 21:03:10 +04:00
|
|
|
#ifndef nsIScriptGlobalObjectOwner_h__
|
|
|
|
#define nsIScriptGlobalObjectOwner_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
class nsIScriptGlobalObject;
|
1999-12-02 09:14:49 +03:00
|
|
|
|
2004-07-16 21:03:10 +04:00
|
|
|
#define NS_ISCRIPTGLOBALOBJECTOWNER_IID \
|
|
|
|
{0xfd25ca8e, 0x6b63, 0x435f, \
|
|
|
|
{ 0xb8, 0xc6, 0xb8, 0x07, 0x68, 0xa4, 0x0a, 0xdc }}
|
1999-12-02 09:14:49 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implemented by any object capable of supplying a nsIScriptGlobalObject.
|
2004-07-16 21:03:10 +04:00
|
|
|
* The implentor may create the script global object on demand.
|
1999-12-02 09:14:49 +03:00
|
|
|
*/
|
|
|
|
|
2004-07-16 21:03:10 +04:00
|
|
|
class nsIScriptGlobalObjectOwner : public nsISupports
|
1999-12-02 09:14:49 +03:00
|
|
|
{
|
2004-07-16 21:03:10 +04:00
|
|
|
public:
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTGLOBALOBJECTOWNER_IID)
|
1999-12-02 09:14:49 +03:00
|
|
|
|
|
|
|
/**
|
2004-07-16 21:03:10 +04:00
|
|
|
* Returns the script global object
|
1999-12-02 09:14:49 +03:00
|
|
|
*/
|
2004-07-16 21:03:10 +04:00
|
|
|
virtual nsIScriptGlobalObject* GetScriptGlobalObject() = 0;
|
1999-12-02 09:14:49 +03:00
|
|
|
};
|
2004-07-16 21:03:10 +04:00
|
|
|
|
2005-11-11 17:36:26 +03:00
|
|
|
NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptGlobalObjectOwner,
|
|
|
|
NS_ISCRIPTGLOBALOBJECTOWNER_IID)
|
|
|
|
|
2004-07-16 21:03:10 +04:00
|
|
|
#endif /* nsIScriptGlobalObjectOwner_h__ */
|