embedding/base/nsIWindowCreator.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/base/nsIWindowCreator.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +/**
    1.11 + * nsIWindowCreator is a callback interface used by Gecko to create
    1.12 + * new browser windows. The application, either Mozilla or an embedding app,
    1.13 + * must provide an implementation of the Window Watcher component and
    1.14 + * notify the WindowWatcher during application initialization.
    1.15 + * @see nsIWindowWatcher
    1.16 + */
    1.17 +
    1.18 +#include "nsISupports.idl"
    1.19 +
    1.20 +interface nsIWebBrowserChrome;
    1.21 +
    1.22 +[scriptable, uuid(30465632-A777-44cc-90F9-8145475EF999)]
    1.23 +
    1.24 +interface nsIWindowCreator : nsISupports {
    1.25 +
    1.26 +  /** Create a new window. Gecko will/may call this method, if made
    1.27 +      available to it, to create new windows.
    1.28 +      @param parent parent window, if any. null if not. the newly created
    1.29 +                    window should be made a child/dependent window of
    1.30 +                    the parent, if any (and if the concept applies
    1.31 +                    to the underlying OS).
    1.32 +      @param chromeFlags chrome features from nsIWebBrowserChrome
    1.33 +      @return the new window
    1.34 +  */
    1.35 +  nsIWebBrowserChrome createChromeWindow(in nsIWebBrowserChrome parent,
    1.36 +                                         in uint32_t chromeFlags);
    1.37 +};
    1.38 +
    1.39 +%{C++
    1.40 +// {30465632-A777-44cc-90F9-8145475EF999}
    1.41 +#define NS_WINDOWCREATOR_IID \
    1.42 + {0x30465632, 0xa777, 0x44cc, {0x90, 0xf9, 0x81, 0x45, 0x47, 0x5e, 0xf9, 0x99}}
    1.43 +%}
    1.44 +

mercurial