From e7ee73db72a47608c776373b49a289b656dc2b4c Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 27 Sep 2002 23:23:01 +0000 Subject: [PATCH] expose constants to script. bug 166442 r=jag,lumpy git-svn-id: svn://10.0.0.236/trunk@130617 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/embedding/base/nsIWindowCreator2.idl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mozilla/embedding/base/nsIWindowCreator2.idl b/mozilla/embedding/base/nsIWindowCreator2.idl index 5438c65c77d..1a22c756ff6 100644 --- a/mozilla/embedding/base/nsIWindowCreator2.idl +++ b/mozilla/embedding/base/nsIWindowCreator2.idl @@ -34,17 +34,19 @@ interface nsIWebBrowserChrome; -[uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)] +// This interface is not generally scriptable: only the const(s) +// should be visible. +[scriptable, uuid(f673ec81-a4b0-11d6-964b-eb5a2bf216fc)] interface nsIWindowCreator2 : nsIWindowCreator { /** * Definitions for contextFlags */ - + // Likely that the window is an advertising popup. const unsigned long PARENT_IS_LOADING_OR_RUNNING_TIMEOUT = 0x00000001; - + /** Create a new window. Gecko will/may call this method, if made available to it, to create new windows. @param parent parent window, if any. null if not. the newly created @@ -55,6 +57,7 @@ interface nsIWindowCreator2 : nsIWindowCreator { @param contextFlags flags about the context of the window being created. @return the new window */ + [noscript] nsIWebBrowserChrome createChromeWindow2(in nsIWebBrowserChrome parent, in PRUint32 chromeFlags, in PRUint32 contextFlags);