Blame xpcom/system/nsIXULRuntime.idl

Packit f0b94e
/* This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
Packit f0b94e
#include "nsISupports.idl"
Packit f0b94e
Packit f0b94e
%{C++
Packit f0b94e
Packit f0b94e
namespace mozilla {
Packit f0b94e
// Simple C++ getter for nsIXULRuntime::browserTabsRemoteAutostart
Packit f0b94e
// This getter is a temporary function that checks for special
Packit f0b94e
// conditions in which e10s support is not great yet, and should
Packit f0b94e
// therefore be disabled. Bug 1065561 tracks its removal.
Packit f0b94e
bool BrowserTabsRemoteAutostart();
Packit f0b94e
uint32_t GetMaxWebProcessCount();
Packit f0b94e
}
Packit f0b94e
Packit f0b94e
%}
Packit f0b94e
Packit f0b94e
/**
Packit f0b94e
 * Provides information about the XUL runtime.
Packit f0b94e
 * @status UNSTABLE - This interface is not frozen and will probably change in
Packit f0b94e
 *                    future releases. If you need this functionality to be
Packit f0b94e
 *                    stable/frozen, please contact Benjamin Smedberg.
Packit f0b94e
 */
Packit f0b94e
Packit f0b94e
[scriptable, uuid(03602fac-fa3f-4a50-9baa-b88456fb4a0f)]
Packit f0b94e
interface nsIXULRuntime : nsISupports
Packit f0b94e
{
Packit f0b94e
  /**
Packit f0b94e
   * Whether the application was launched in safe mode.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean inSafeMode;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Whether to write console errors to a log file. If a component
Packit f0b94e
   * encounters startup errors that might prevent the app from showing
Packit f0b94e
   * proper UI, it should set this flag to "true".
Packit f0b94e
   */
Packit f0b94e
  attribute boolean logConsoleErrors;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * A string tag identifying the current operating system. This is taken
Packit f0b94e
   * from the OS_TARGET configure variable. It will always be available.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute AUTF8String OS;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * A string tag identifying the binary ABI of the current processor and
Packit f0b94e
   * compiler vtable. This is taken from the TARGET_XPCOM_ABI configure
Packit f0b94e
   * variable. It may not be available on all platforms, especially
Packit f0b94e
   * unusual processor or compiler combinations.
Packit f0b94e
   *
Packit f0b94e
   * The result takes the form <processor>-<compilerABI>, for example:
Packit f0b94e
   *   x86-msvc
Packit f0b94e
   *   ppc-gcc3
Packit f0b94e
   *
Packit f0b94e
   * This value should almost always be used in combination with "OS".
Packit f0b94e
   *
Packit f0b94e
   * @throw NS_ERROR_NOT_AVAILABLE if not available.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute AUTF8String XPCOMABI;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * A string tag identifying the target widget toolkit in use.
Packit f0b94e
   * This is taken from the MOZ_WIDGET_TOOLKIT configure variable.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute AUTF8String widgetToolkit;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The legal values of processType.
Packit f0b94e
   */
Packit f0b94e
  const unsigned long PROCESS_TYPE_DEFAULT = 0;
Packit f0b94e
  const unsigned long PROCESS_TYPE_PLUGIN = 1;
Packit f0b94e
  const unsigned long PROCESS_TYPE_CONTENT = 2;
Packit f0b94e
  const unsigned long PROCESS_TYPE_IPDLUNITTEST = 3;
Packit f0b94e
  const unsigned long PROCESS_TYPE_GMPLUGIN = 4;
Packit f0b94e
  const unsigned long PROCESS_TYPE_GPU = 5;
Packit f0b94e
  const unsigned long PROCESS_TYPE_PDFIUM = 6;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The type of the caller's process.  Returns one of the values above.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute unsigned long processType;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The system process ID of the caller's process.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute unsigned long processID;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * A globally unique and non-recycled ID of the caller's process.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute uint64_t uniqueProcessID;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The type of remote content process we're running in.
Packit f0b94e
   * null if we're in the parent/chrome process.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute DOMString remoteType;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * If true, browser tabs may be opened by default in a different process
Packit f0b94e
   * from the main browser UI.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean browserTabsRemoteAutostart;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Returns the number of content processes to use for normal web pages. If
Packit f0b94e
   * this value is > 1, then e10s-multi should be considered to be "on".
Packit f0b94e
   *
Packit f0b94e
   * NB: If browserTabsRemoteAutostart is false, then this value has no
Packit f0b94e
   * meaning and e10s should be considered to be "off"!
Packit f0b94e
   */
Packit f0b94e
  readonly attribute uint32_t maxWebProcessCount;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The current e10s-multi experiment number. Set dom.ipc.multiOptOut to (at
Packit f0b94e
   * least) this to disable it until the next experiment.
Packit f0b94e
   */
Packit f0b94e
  const uint32_t E10S_MULTI_EXPERIMENT = 1;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * If true, the accessibility service is running.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean accessibilityEnabled;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * If true, the AccessibleHandler dll is used.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean accessibleHandlerUsed;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Executable of Windows service that activated accessibility.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute DOMString accessibilityInstantiator;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Temporary, do not use. Indicates if an incompat version of JAWS
Packit f0b94e
   * screen reader software is loaded in our process space.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean shouldBlockIncompatJaws;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Indicates whether the current Firefox build is 64-bit.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean is64Bit;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Signal the apprunner to invalidate caches on the next restart.
Packit f0b94e
   * This will cause components to be autoregistered and all
Packit f0b94e
   * fastload data to be re-created.
Packit f0b94e
   */
Packit f0b94e
  void invalidateCachesOnRestart();
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Starts a child process. This method is intented to pre-start a
Packit f0b94e
   * content child process so that when it is actually needed, it is
Packit f0b94e
   * ready to go.
Packit f0b94e
   *
Packit f0b94e
   * @throw NS_ERROR_NOT_AVAILABLE if not available.
Packit f0b94e
   */
Packit f0b94e
  void ensureContentProcess();
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * Modification time of the profile lock before the profile was locked on
Packit f0b94e
   * this startup. Used to know the last time the profile was used and not
Packit f0b94e
   * closed cleanly. This is set to 0 if there was no existing profile lock.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute PRTime replacedLockTime;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * True if this is RELEASE_OR_BETA.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean isReleaseOrBeta;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * True if this build uses official branding (MOZ_OFFICIAL_BRANDING).
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean isOfficialBranding;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The default update channel (MOZ_UPDATE_CHANNEL).
Packit f0b94e
   */
Packit f0b94e
  readonly attribute AUTF8String defaultUpdateChannel;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * The distribution ID for this build (MOZ_DISTRIBUTION_ID).
Packit f0b94e
   */
Packit f0b94e
  readonly attribute AUTF8String distributionID;
Packit f0b94e
Packit f0b94e
  /**
Packit f0b94e
   * True if Windows DLL blocklist initialized correctly. This is
Packit f0b94e
   * primarily for automated testing purposes.
Packit f0b94e
   */
Packit f0b94e
  readonly attribute boolean windowsDLLBlocklistStatus;
Packit f0b94e
};