michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: %{C++ michael@0: michael@0: namespace mozilla { michael@0: // Simple C++ getter for nsIXULRuntime::browserTabsRemote michael@0: bool BrowserTabsRemote(); michael@0: } michael@0: michael@0: %} michael@0: michael@0: /** michael@0: * Provides information about the XUL runtime. michael@0: * @status UNSTABLE - This interface is not frozen and will probably change in michael@0: * future releases. If you need this functionality to be michael@0: * stable/frozen, please contact Benjamin Smedberg. michael@0: */ michael@0: michael@0: [scriptable, uuid(e080b1f6-8452-4bde-9368-c795808b86d1)] michael@0: interface nsIXULRuntime : nsISupports michael@0: { michael@0: /** michael@0: * Whether the application was launched in safe mode. michael@0: */ michael@0: readonly attribute boolean inSafeMode; michael@0: michael@0: /** michael@0: * Whether to write console errors to a log file. If a component michael@0: * encounters startup errors that might prevent the app from showing michael@0: * proper UI, it should set this flag to "true". michael@0: */ michael@0: attribute boolean logConsoleErrors; michael@0: michael@0: /** michael@0: * A string tag identifying the current operating system. This is taken michael@0: * from the OS_TARGET configure variable. It will always be available. michael@0: */ michael@0: readonly attribute AUTF8String OS; michael@0: michael@0: /** michael@0: * A string tag identifying the binary ABI of the current processor and michael@0: * compiler vtable. This is taken from the TARGET_XPCOM_ABI configure michael@0: * variable. It may not be available on all platforms, especially michael@0: * unusual processor or compiler combinations. michael@0: * michael@0: * The result takes the form -, for example: michael@0: * x86-msvc michael@0: * ppc-gcc3 michael@0: * michael@0: * This value should almost always be used in combination with "OS". michael@0: * michael@0: * @throw NS_ERROR_NOT_AVAILABLE if not available. michael@0: */ michael@0: readonly attribute AUTF8String XPCOMABI; michael@0: michael@0: /** michael@0: * A string tag identifying the target widget toolkit in use. michael@0: * This is taken from the MOZ_WIDGET_TOOLKIT configure variable. michael@0: */ michael@0: readonly attribute AUTF8String widgetToolkit; michael@0: michael@0: /** michael@0: * The legal values of processType. michael@0: */ michael@0: const unsigned long PROCESS_TYPE_DEFAULT = 0; michael@0: const unsigned long PROCESS_TYPE_PLUGIN = 1; michael@0: const unsigned long PROCESS_TYPE_CONTENT = 2; michael@0: const unsigned long PROCESS_TYPE_IPDLUNITTEST = 3; michael@0: michael@0: /** michael@0: * The type of the caller's process. Returns one of the values above. michael@0: */ michael@0: readonly attribute unsigned long processType; michael@0: michael@0: /** michael@0: * The system process ID of the caller's process. michael@0: */ michael@0: readonly attribute unsigned long processID; michael@0: michael@0: /** michael@0: * If true, browser tabs may be opened in a different process from the main michael@0: * browser UI. michael@0: */ michael@0: readonly attribute boolean browserTabsRemote; michael@0: michael@0: /** michael@0: * Signal the apprunner to invalidate caches on the next restart. michael@0: * This will cause components to be autoregistered and all michael@0: * fastload data to be re-created. michael@0: */ michael@0: void invalidateCachesOnRestart(); michael@0: michael@0: /** michael@0: * Starts a child process. This method is intented to pre-start a michael@0: * content child process so that when it is actually needed, it is michael@0: * ready to go. michael@0: * michael@0: * @throw NS_ERROR_NOT_AVAILABLE if not available. michael@0: */ michael@0: void ensureContentProcess(); michael@0: michael@0: /** michael@0: * Modification time of the profile lock before the profile was locked on michael@0: * this startup. Used to know the last time the profile was used and not michael@0: * closed cleanly. This is set to 0 if there was no existing profile lock. michael@0: */ michael@0: readonly attribute PRTime replacedLockTime; michael@0: michael@0: /** michael@0: * Local ID of the minidump generated when the process crashed michael@0: * on the previous run. Can be passed directly to CrashSubmit.submit. michael@0: */ michael@0: readonly attribute DOMString lastRunCrashID; michael@0: michael@0: /** michael@0: * True if this is a RELEASE_BUILD. michael@0: */ michael@0: readonly attribute boolean isReleaseBuild; michael@0: michael@0: /** michael@0: * True if this build uses official branding (MOZ_OFFICIAL_BRANDING). michael@0: */ michael@0: readonly attribute boolean isOfficialBranding; michael@0: michael@0: /** michael@0: * The default update channel (MOZ_UPDATE_CHANNEL). michael@0: */ michael@0: readonly attribute AUTF8String defaultUpdateChannel; michael@0: michael@0: /** michael@0: * The distribution ID for this build (MOZ_DISTRIBUTION_ID). michael@0: */ michael@0: readonly attribute AUTF8String distributionID; michael@0: };