/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Mozilla Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/MPL/ * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * The Original Code is mozilla.org code. * The Initial Developer of the Original Code is Netscape * Communications, Inc. Portions created by Netscape are * Copyright (C) 2001,2002 Mozilla. All Rights Reserved. * Contributor(s): */ /** * nsIWindowCreator2 is an extension of nsIWindowCreator which allows * additional information about the context of the window creation to * be passed. * * @see nsIWindowCreator * @see nsIWindowWatcher * * @status */ #include "nsIWindowCreator.idl" interface nsIWebBrowserChrome; // 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 window should be made a child/dependent window of the parent, if any (and if the concept applies to the underlying OS). @param chromeFlags chrome features from nsIWebBrowserChrome @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); };