2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2005-05-12 17:23:30 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
2013-12-13 02:13:20 +04:00
|
|
|
%{C++
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
// Simple C++ getter for nsIXULRuntime::browserTabsRemote
|
|
|
|
bool BrowserTabsRemote();
|
|
|
|
}
|
|
|
|
|
|
|
|
%}
|
|
|
|
|
2005-05-12 17:23:30 +04:00
|
|
|
/**
|
|
|
|
* Provides information about the XUL runtime.
|
|
|
|
* @status UNSTABLE - This interface is not frozen and will probably change in
|
|
|
|
* future releases. If you need this functionality to be
|
|
|
|
* stable/frozen, please contact Benjamin Smedberg.
|
|
|
|
*/
|
|
|
|
|
2014-03-26 19:55:22 +04:00
|
|
|
[scriptable, uuid(e080b1f6-8452-4bde-9368-c795808b86d1)]
|
2005-05-12 17:23:30 +04:00
|
|
|
interface nsIXULRuntime : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Whether the application was launched in safe mode.
|
|
|
|
*/
|
|
|
|
readonly attribute boolean inSafeMode;
|
2005-06-07 23:28:23 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether to write console errors to a log file. If a component
|
|
|
|
* encounters startup errors that might prevent the app from showing
|
|
|
|
* proper UI, it should set this flag to "true".
|
|
|
|
*/
|
|
|
|
attribute boolean logConsoleErrors;
|
2005-06-10 22:23:28 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A string tag identifying the current operating system. This is taken
|
|
|
|
* from the OS_TARGET configure variable. It will always be available.
|
|
|
|
*/
|
|
|
|
readonly attribute AUTF8String OS;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A string tag identifying the binary ABI of the current processor and
|
|
|
|
* compiler vtable. This is taken from the TARGET_XPCOM_ABI configure
|
|
|
|
* variable. It may not be available on all platforms, especially
|
|
|
|
* unusual processor or compiler combinations.
|
|
|
|
*
|
|
|
|
* The result takes the form <processor>-<compilerABI>, for example:
|
|
|
|
* x86-msvc
|
|
|
|
* ppc-gcc3
|
|
|
|
*
|
|
|
|
* This value should almost always be used in combination with "OS".
|
|
|
|
*
|
|
|
|
* @throw NS_ERROR_NOT_AVAILABLE if not available.
|
|
|
|
*/
|
|
|
|
readonly attribute AUTF8String XPCOMABI;
|
2009-02-02 16:53:24 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A string tag identifying the target widget toolkit in use.
|
|
|
|
* This is taken from the MOZ_WIDGET_TOOLKIT configure variable.
|
|
|
|
*/
|
|
|
|
readonly attribute AUTF8String widgetToolkit;
|
2009-08-19 21:09:51 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The legal values of processType.
|
|
|
|
*/
|
|
|
|
const unsigned long PROCESS_TYPE_DEFAULT = 0;
|
|
|
|
const unsigned long PROCESS_TYPE_PLUGIN = 1;
|
|
|
|
const unsigned long PROCESS_TYPE_CONTENT = 2;
|
2011-12-24 12:25:52 +04:00
|
|
|
const unsigned long PROCESS_TYPE_IPDLUNITTEST = 3;
|
2014-05-18 07:05:46 +04:00
|
|
|
const unsigned long PROCESS_TYPE_GMPLUGIN = 4;
|
2009-08-19 21:09:51 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The type of the caller's process. Returns one of the values above.
|
|
|
|
*/
|
|
|
|
readonly attribute unsigned long processType;
|
2009-10-20 20:08:28 +04:00
|
|
|
|
2014-03-26 19:55:22 +04:00
|
|
|
/**
|
|
|
|
* The system process ID of the caller's process.
|
|
|
|
*/
|
|
|
|
readonly attribute unsigned long processID;
|
|
|
|
|
2013-12-13 02:13:20 +04:00
|
|
|
/**
|
|
|
|
* If true, browser tabs may be opened in a different process from the main
|
|
|
|
* browser UI.
|
|
|
|
*/
|
|
|
|
readonly attribute boolean browserTabsRemote;
|
|
|
|
|
2009-10-16 10:32:29 +04:00
|
|
|
/**
|
|
|
|
* Signal the apprunner to invalidate caches on the next restart.
|
|
|
|
* This will cause components to be autoregistered and all
|
|
|
|
* fastload data to be re-created.
|
|
|
|
*/
|
|
|
|
void invalidateCachesOnRestart();
|
2010-07-30 22:43:56 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Starts a child process. This method is intented to pre-start a
|
|
|
|
* content child process so that when it is actually needed, it is
|
|
|
|
* ready to go.
|
|
|
|
*
|
|
|
|
* @throw NS_ERROR_NOT_AVAILABLE if not available.
|
|
|
|
*/
|
|
|
|
void ensureContentProcess();
|
2011-11-08 09:20:42 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Modification time of the profile lock before the profile was locked on
|
|
|
|
* this startup. Used to know the last time the profile was used and not
|
|
|
|
* closed cleanly. This is set to 0 if there was no existing profile lock.
|
|
|
|
*/
|
2012-08-30 11:10:35 +04:00
|
|
|
readonly attribute PRTime replacedLockTime;
|
2012-07-17 03:50:52 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Local ID of the minidump generated when the process crashed
|
|
|
|
* on the previous run. Can be passed directly to CrashSubmit.submit.
|
|
|
|
*/
|
|
|
|
readonly attribute DOMString lastRunCrashID;
|
2014-02-19 18:20:02 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* True if this is a RELEASE_BUILD.
|
|
|
|
*/
|
|
|
|
readonly attribute boolean isReleaseBuild;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* True if this build uses official branding (MOZ_OFFICIAL_BRANDING).
|
|
|
|
*/
|
|
|
|
readonly attribute boolean isOfficialBranding;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The default update channel (MOZ_UPDATE_CHANNEL).
|
|
|
|
*/
|
|
|
|
readonly attribute AUTF8String defaultUpdateChannel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The distribution ID for this build (MOZ_DISTRIBUTION_ID).
|
|
|
|
*/
|
|
|
|
readonly attribute AUTF8String distributionID;
|
2005-05-12 17:23:30 +04:00
|
|
|
};
|