mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
e368dc9c85
This patch was generated by a script. Here's the source of the script for future reference: function convert() { echo "Converting $1 to $2..." find . ! -wholename "*nsprpub*" \ ! -wholename "*security/nss*" \ ! -wholename "*/.hg*" \ ! -wholename "obj-ff-dbg*" \ ! -name nsXPCOMCID.h \ ! -name prtypes.h \ -type f \ \( -iname "*.cpp" \ -o -iname "*.h" \ -o -iname "*.c" \ -o -iname "*.cc" \ -o -iname "*.idl" \ -o -iname "*.ipdl" \ -o -iname "*.ipdlh" \ -o -iname "*.mm" \) | \ xargs -n 1 sed -i -e "s/\b$1\b/$2/g" } convert PRInt8 int8_t convert PRUint8 uint8_t convert PRInt16 int16_t convert PRUint16 uint16_t convert PRInt32 int32_t convert PRUint32 uint32_t convert PRInt64 int64_t convert PRUint64 uint64_t convert PRIntn int convert PRUintn unsigned convert PRSize size_t convert PROffset32 int32_t convert PROffset64 int64_t convert PRPtrdiff ptrdiff_t convert PRFloat64 double
59 lines
2.4 KiB
Plaintext
59 lines
2.4 KiB
Plaintext
/* -*- 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 nsIURI;
|
|
interface nsIWebBrowserChrome;
|
|
|
|
[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.
|
|
@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 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,
|
|
out boolean cancel);
|
|
};
|