embedding/nsIWindowCreator2.idl
author B2G Bumper Bot <release+b2gbumper@mozilla.com>
Wed, 21 Jan 2015 04:34:57 -0800
changeset 251999 ea4d2b8a3ea7539929427b70dfb83297211ae9dc
parent 222303 0edaea0894c3fabb49a020f5c5f45ab0d1d213f7
child 271869 29894b01e4b886235df4c77348e12bedd6dd1e4b
permissions -rw-r--r--
Bumping gaia.json for 6 gaia revision(s) a=gaia-bump ======== https://hg.mozilla.org/integration/gaia-central/rev/43498e12a533 Author: autolander <bug.autolander@gmail.com> Desc: Bug 1120704 - merge pull request #27531 from etiennesegonzac:bug-1120704 to mozilla-b2g:master ======== https://hg.mozilla.org/integration/gaia-central/rev/e3b6cfa41030 Author: Etienne Segonzac <etienne@segonzac.info> Desc: Bug 1120704 - No longer "freeze" the iframe sizing for background apps on orientation change. r=alive This was originally done to prevent reflows but it's not. So the added complexity isn't worth it. ======== https://hg.mozilla.org/integration/gaia-central/rev/406533ce97f7 Author: George <georgeiscoming@gmail.com> Desc: Merge pull request #27449 from cctuan/1119723 Bug 1119723 - [Flame][Homescreen]A partial facebook view overlaps on the top left corner of home screen ======== https://hg.mozilla.org/integration/gaia-central/rev/dadb29e5156f Author: cctuan <georgeiscoming@gmail.com> Desc: Bug 1119723 - [Flame][Homescreen]A partial facebook view overlaps on the top left corner of home screen. ======== https://hg.mozilla.org/integration/gaia-central/rev/b3274c0b96ec Author: steveck-chung <schung@mozilla.com> Desc: Merge pull request #27225 from steveck-chung/message-reduce-flashing-taskrunner Bug 1091441 - [Messages] the thread view is flashing while loading if there are MMS, r=azasypkin ======== https://hg.mozilla.org/integration/gaia-central/rev/179d21a7a12e Author: Steve Chung <schung@mozilla.com> Desc: Bug 1091441 - [Messages] the thread view is flashing while loading if there are MMS. r=azasypkin

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 *
 * 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/. */

/**
 * 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 nsITabParent;
interface nsIURI;
interface nsIWebBrowserChrome;

[scriptable, uuid(e28f810b-9b49-4927-a4be-62a74fadfe21)]

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.
      @param uri The URL for which this window is intended. It can be null
                 or zero-length. The implementation of this interface
                 may use the URL to help determine what sort of window
                 to open or whether to cancel window creation. It will not
                 load the URL.
      @param aOpeningTab The TabParent that is trying to open this new chrome
                         window. Can be nullptr.
      @param cancel Return |true| to reject window creation. If true the
                    implementation has determined the window should not
                    be created at all. The caller should not default
                    to any possible backup scheme for creating the window.
      @return the new window. Will be null if canceled or an error occurred.
  */
  nsIWebBrowserChrome createChromeWindow2(in nsIWebBrowserChrome parent,
                                          in uint32_t chromeFlags,
                                          in uint32_t contextFlags,
                                          in nsIURI uri,
                                          in nsITabParent aOpeningTab,
                                          out boolean cancel);
};