Bumping manifests a=b2g-bump
[gecko.git] / xpcom / system / nsIXULRuntime.idl
blob4f98eed3f232d1ad0d7cd4c35b16f55dd5695078
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 %{C++
9 namespace mozilla {
10 // Simple C++ getter for nsIXULRuntime::browserTabsRemote
11 bool BrowserTabsRemote();
12 // Simple C++ getter for nsIXULRuntime::browserTabsRemoteAutostart
13 // This getter is a temporary function that checks for special
14 // conditions in which e10s support is not great yet, and should
15 // therefore be disabled. Bug 1065561 tracks its removal.
16 bool BrowserTabsRemoteAutostart();
21 /**
22 * Provides information about the XUL runtime.
23 * @status UNSTABLE - This interface is not frozen and will probably change in
24 * future releases. If you need this functionality to be
25 * stable/frozen, please contact Benjamin Smedberg.
28 [scriptable, uuid(e652d3b8-c77c-4601-a84d-b0716d2b32c0)]
29 interface nsIXULRuntime : nsISupports
31 /**
32 * Whether the application was launched in safe mode.
34 readonly attribute boolean inSafeMode;
36 /**
37 * Whether to write console errors to a log file. If a component
38 * encounters startup errors that might prevent the app from showing
39 * proper UI, it should set this flag to "true".
41 attribute boolean logConsoleErrors;
43 /**
44 * A string tag identifying the current operating system. This is taken
45 * from the OS_TARGET configure variable. It will always be available.
47 readonly attribute AUTF8String OS;
49 /**
50 * A string tag identifying the binary ABI of the current processor and
51 * compiler vtable. This is taken from the TARGET_XPCOM_ABI configure
52 * variable. It may not be available on all platforms, especially
53 * unusual processor or compiler combinations.
55 * The result takes the form <processor>-<compilerABI>, for example:
56 * x86-msvc
57 * ppc-gcc3
59 * This value should almost always be used in combination with "OS".
61 * @throw NS_ERROR_NOT_AVAILABLE if not available.
63 readonly attribute AUTF8String XPCOMABI;
65 /**
66 * A string tag identifying the target widget toolkit in use.
67 * This is taken from the MOZ_WIDGET_TOOLKIT configure variable.
69 readonly attribute AUTF8String widgetToolkit;
71 /**
72 * The legal values of processType.
74 const unsigned long PROCESS_TYPE_DEFAULT = 0;
75 const unsigned long PROCESS_TYPE_PLUGIN = 1;
76 const unsigned long PROCESS_TYPE_CONTENT = 2;
77 const unsigned long PROCESS_TYPE_IPDLUNITTEST = 3;
78 const unsigned long PROCESS_TYPE_GMPLUGIN = 4;
80 /**
81 * The type of the caller's process. Returns one of the values above.
83 readonly attribute unsigned long processType;
85 /**
86 * The system process ID of the caller's process.
88 readonly attribute unsigned long processID;
90 /**
91 * If true, browser tabs may be opened in a different process from the main
92 * browser UI.
94 readonly attribute boolean browserTabsRemote;
96 /**
97 * If true, browser tabs may be opened by default in a different process
98 * from the main browser UI.
100 readonly attribute boolean browserTabsRemoteAutostart;
103 * Signal the apprunner to invalidate caches on the next restart.
104 * This will cause components to be autoregistered and all
105 * fastload data to be re-created.
107 void invalidateCachesOnRestart();
110 * Starts a child process. This method is intented to pre-start a
111 * content child process so that when it is actually needed, it is
112 * ready to go.
114 * @throw NS_ERROR_NOT_AVAILABLE if not available.
116 void ensureContentProcess();
119 * Modification time of the profile lock before the profile was locked on
120 * this startup. Used to know the last time the profile was used and not
121 * closed cleanly. This is set to 0 if there was no existing profile lock.
123 readonly attribute PRTime replacedLockTime;
126 * Local ID of the minidump generated when the process crashed
127 * on the previous run. Can be passed directly to CrashSubmit.submit.
129 readonly attribute DOMString lastRunCrashID;
132 * True if this is a RELEASE_BUILD.
134 readonly attribute boolean isReleaseBuild;
137 * True if this build uses official branding (MOZ_OFFICIAL_BRANDING).
139 readonly attribute boolean isOfficialBranding;
142 * The default update channel (MOZ_UPDATE_CHANNEL).
144 readonly attribute AUTF8String defaultUpdateChannel;
147 * The distribution ID for this build (MOZ_DISTRIBUTION_ID).
149 readonly attribute AUTF8String distributionID;