mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
0fd9123eac
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
98 lines
2.8 KiB
Plaintext
98 lines
2.8 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/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
interface nsIURI;
|
|
|
|
[scriptable, uuid(249fb5ad-ae29-4e2c-a728-ba5cf464d188)]
|
|
interface nsIChromeRegistry : nsISupports
|
|
{
|
|
const int32_t NONE = 0;
|
|
const int32_t PARTIAL = 1;
|
|
const int32_t FULL = 2;
|
|
|
|
/**
|
|
* Resolve a chrome URL to an loadable URI using the information in the
|
|
* registry. Does not modify aChromeURL.
|
|
*
|
|
* Chrome URLs are allowed to be specified in "shorthand", leaving the
|
|
* "file" portion off. In that case, the URL is expanded to:
|
|
*
|
|
* chrome://package/provider/package.ext
|
|
*
|
|
* where "ext" is:
|
|
*
|
|
* "xul" for a "content" package,
|
|
* "css" for a "skin" package, and
|
|
* "dtd" for a "locale" package.
|
|
*
|
|
* @param aChromeURL the URL that is to be converted.
|
|
*/
|
|
nsIURI convertChromeURL(in nsIURI aChromeURL);
|
|
|
|
/**
|
|
* refresh the chrome list at runtime, looking for new packages/etc
|
|
*/
|
|
void checkForNewChrome();
|
|
|
|
/**
|
|
* returns whether XPCNativeWrappers are enabled for aURI.
|
|
*/
|
|
[notxpcom] boolean wrappersEnabled(in nsIURI aURI);
|
|
};
|
|
|
|
[scriptable, uuid(c2461347-2b8f-48c7-9d59-3a61fb868828)]
|
|
interface nsIXULChromeRegistry : nsIChromeRegistry
|
|
{
|
|
/* Should be called when locales change to reload all chrome (including XUL). */
|
|
void reloadChrome();
|
|
|
|
ACString getSelectedLocale(in ACString packageName);
|
|
|
|
// Get the direction of the locale via the intl.uidirection.<locale> pref
|
|
boolean isLocaleRTL(in ACString package);
|
|
|
|
/* Should be called when skins change. Reloads only stylesheets. */
|
|
void refreshSkins();
|
|
|
|
/**
|
|
* Installable skin XBL is not always granted the same privileges as other
|
|
* chrome. This asks the chrome registry whether scripts are allowed to be
|
|
* run for a particular chrome URI. Do not pass non-chrome URIs to this
|
|
* method.
|
|
*/
|
|
boolean allowScriptsForPackage(in nsIURI url);
|
|
|
|
/**
|
|
* Content should only be allowed to load chrome JS from certain packages.
|
|
* This method reflects the contentaccessible flag on packages.
|
|
* Do not pass non-chrome URIs to this method.
|
|
*/
|
|
boolean allowContentToAccess(in nsIURI url);
|
|
};
|
|
|
|
%{ C++
|
|
|
|
#define NS_CHROMEREGISTRY_CONTRACTID \
|
|
"@mozilla.org/chrome/chrome-registry;1"
|
|
|
|
/**
|
|
* Chrome registry will notify various caches that all chrome files need
|
|
* flushing.
|
|
*/
|
|
#define NS_CHROME_FLUSH_TOPIC \
|
|
"chrome-flush-caches"
|
|
|
|
/**
|
|
* Chrome registry will notify various caches that skin files need flushing.
|
|
* If "chrome-flush-caches" is notified, this topic will *not* be notified.
|
|
*/
|
|
#define NS_CHROME_FLUSH_SKINS_TOPIC \
|
|
"chrome-flush-skin-caches"
|
|
|
|
%}
|