Copy as Markdown
Other Tools
//
// DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/xpcom/system/nsIXULRuntime.idl
//
/// `interface nsIXULRuntime : nsISupports`
///
/// ```text
/// /**
/// * 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.
/// */
/// ```
///
// The actual type definition for the interface. This struct has methods
// declared on it which will call through its vtable. You never want to pass
// this type around by value, always pass it behind a reference.
#[repr(C)]
pub struct nsIXULRuntime {
vtable: &'static nsIXULRuntimeVTable,
/// This field is a phantomdata to ensure that the VTable type and any
/// struct containing it is not safe to send across threads by default, as
/// XPCOM is generally not threadsafe.
///
/// If this type is marked as [rust_sync], there will be explicit `Send` and
/// `Sync` implementations on this type, which will override the inherited
/// negative impls from `Rc`.
__nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>,
// Make the rust compiler aware that there might be interior mutability
// in what actually implements the interface. This works around UB
// introduced by https://github.com/llvm/llvm-project/commit/01859da84bad95fd51d6a03b08b60c660e642a4f
// that a rust lint would make blatantly obvious, but doesn't exist.
// This prevents optimizations, but those optimizations weren't available
// before rustc switched to LLVM 16, and they now cause problems because
// of the UB.
// Until there's a lint available to find all our UB, it's simpler to
// avoid the UB in the first place, at the cost of preventing optimizations
// in places that don't cause UB. But again, those optimizations weren't
// available before.
__maybe_interior_mutability: ::std::cell::UnsafeCell<[u8; 0]>,
}
// Implementing XpCom for an interface exposes its IID, which allows for easy
// use of the `.query_interface<T>` helper method. This also defines that
// method for nsIXULRuntime.
unsafe impl XpCom for nsIXULRuntime {
const IID: nsIID = nsID(0x03602fac, 0xfa3f, 0x4a50,
[0x9b, 0xaa, 0xb8, 0x84, 0x56, 0xfb, 0x4a, 0x0f]);
}
// We need to implement the RefCounted trait so we can be used with `RefPtr`.
// This trait teaches `RefPtr` how to manage our memory.
unsafe impl RefCounted for nsIXULRuntime {
#[inline]
unsafe fn addref(&self) {
self.AddRef();
}
#[inline]
unsafe fn release(&self) {
self.Release();
}
}
// This trait is implemented on all types which can be coerced to from nsIXULRuntime.
// It is used in the implementation of `fn coerce<T>`. We hide it from the
// documentation, because it clutters it up a lot.
#[doc(hidden)]
pub trait nsIXULRuntimeCoerce {
/// Cheaply cast a value of this type from a `nsIXULRuntime`.
fn coerce_from(v: &nsIXULRuntime) -> &Self;
}
// The trivial implementation: We can obviously coerce ourselves to ourselves.
impl nsIXULRuntimeCoerce for nsIXULRuntime {
#[inline]
fn coerce_from(v: &nsIXULRuntime) -> &Self {
v
}
}
impl nsIXULRuntime {
/// Cast this `nsIXULRuntime` to one of its base interfaces.
#[inline]
pub fn coerce<T: nsIXULRuntimeCoerce>(&self) -> &T {
T::coerce_from(self)
}
}
// Every interface struct type implements `Deref` to its base interface. This
// causes methods on the base interfaces to be directly avaliable on the
// object. For example, you can call `.AddRef` or `.QueryInterface` directly
// on any interface which inherits from `nsISupports`.
impl ::std::ops::Deref for nsIXULRuntime {
type Target = nsISupports;
#[inline]
fn deref(&self) -> &nsISupports {
unsafe {
::std::mem::transmute(self)
}
}
}
// Ensure we can use .coerce() to cast to our base types as well. Any type which
// our base interface can coerce from should be coercable from us as well.
impl<T: nsISupportsCoerce> nsIXULRuntimeCoerce for T {
#[inline]
fn coerce_from(v: &nsIXULRuntime) -> &Self {
T::coerce_from(v)
}
}
// This struct represents the interface's VTable. A pointer to a statically
// allocated version of this struct is at the beginning of every nsIXULRuntime
// object. It contains one pointer field for each method in the interface. In
// the case where we can't generate a binding for a method, we include a void
// pointer.
#[doc(hidden)]
#[repr(C)]
pub struct nsIXULRuntimeVTable {
/// We need to include the members from the base interface's vtable at the start
/// of the VTable definition.
pub __base: nsISupportsVTable,
/* readonly attribute boolean inSafeMode; */
pub GetInSafeMode: unsafe extern "system" fn (this: *const nsIXULRuntime, aInSafeMode: *mut bool) -> ::nserror::nsresult,
/* readonly attribute nsIXULRuntime_ExperimentStatus win32kExperimentStatus; */
pub GetWin32kExperimentStatus: unsafe extern "system" fn (this: *const nsIXULRuntime, aWin32kExperimentStatus: *mut u8) -> ::nserror::nsresult,
/* readonly attribute nsIXULRuntime_ContentWin32kLockdownState win32kLiveStatusTestingOnly; */
pub GetWin32kLiveStatusTestingOnly: unsafe extern "system" fn (this: *const nsIXULRuntime, aWin32kLiveStatusTestingOnly: *mut u8) -> ::nserror::nsresult,
/* readonly attribute nsIXULRuntime_ContentWin32kLockdownState win32kSessionStatus; */
pub GetWin32kSessionStatus: unsafe extern "system" fn (this: *const nsIXULRuntime, aWin32kSessionStatus: *mut u8) -> ::nserror::nsresult,
/* readonly attribute boolean fissionAutostart; */
pub GetFissionAutostart: unsafe extern "system" fn (this: *const nsIXULRuntime, aFissionAutostart: *mut bool) -> ::nserror::nsresult,
/* readonly attribute nsIXULRuntime_FissionDecisionStatus fissionDecisionStatus; */
pub GetFissionDecisionStatus: unsafe extern "system" fn (this: *const nsIXULRuntime, aFissionDecisionStatus: *mut u8) -> ::nserror::nsresult,
/* readonly attribute ACString fissionDecisionStatusString; */
pub GetFissionDecisionStatusString: unsafe extern "system" fn (this: *const nsIXULRuntime, aFissionDecisionStatusString: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute boolean sessionHistoryInParent; */
pub GetSessionHistoryInParent: unsafe extern "system" fn (this: *const nsIXULRuntime, aSessionHistoryInParent: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean sessionStorePlatformCollection; */
pub GetSessionStorePlatformCollection: unsafe extern "system" fn (this: *const nsIXULRuntime, aSessionStorePlatformCollection: *mut bool) -> ::nserror::nsresult,
/* attribute boolean logConsoleErrors; */
pub GetLogConsoleErrors: unsafe extern "system" fn (this: *const nsIXULRuntime, aLogConsoleErrors: *mut bool) -> ::nserror::nsresult,
/* attribute boolean logConsoleErrors; */
pub SetLogConsoleErrors: unsafe extern "system" fn (this: *const nsIXULRuntime, aLogConsoleErrors: bool) -> ::nserror::nsresult,
/* readonly attribute AUTF8String OS; */
pub GetOS: unsafe extern "system" fn (this: *const nsIXULRuntime, aOS: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute AUTF8String XPCOMABI; */
pub GetXPCOMABI: unsafe extern "system" fn (this: *const nsIXULRuntime, aXPCOMABI: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute AUTF8String widgetToolkit; */
pub GetWidgetToolkit: unsafe extern "system" fn (this: *const nsIXULRuntime, aWidgetToolkit: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute unsigned long processType; */
pub GetProcessType: unsafe extern "system" fn (this: *const nsIXULRuntime, aProcessType: *mut u32) -> ::nserror::nsresult,
/* readonly attribute unsigned long processID; */
pub GetProcessID: unsafe extern "system" fn (this: *const nsIXULRuntime, aProcessID: *mut u32) -> ::nserror::nsresult,
/* readonly attribute uint64_t uniqueProcessID; */
pub GetUniqueProcessID: unsafe extern "system" fn (this: *const nsIXULRuntime, aUniqueProcessID: *mut u64) -> ::nserror::nsresult,
/* readonly attribute AUTF8String remoteType; */
pub GetRemoteType: unsafe extern "system" fn (this: *const nsIXULRuntime, aRemoteType: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute boolean browserTabsRemoteAutostart; */
pub GetBrowserTabsRemoteAutostart: unsafe extern "system" fn (this: *const nsIXULRuntime, aBrowserTabsRemoteAutostart: *mut bool) -> ::nserror::nsresult,
/* readonly attribute uint32_t maxWebProcessCount; */
pub GetMaxWebProcessCount: unsafe extern "system" fn (this: *const nsIXULRuntime, aMaxWebProcessCount: *mut u32) -> ::nserror::nsresult,
/* readonly attribute boolean accessibilityEnabled; */
pub GetAccessibilityEnabled: unsafe extern "system" fn (this: *const nsIXULRuntime, aAccessibilityEnabled: *mut bool) -> ::nserror::nsresult,
/* readonly attribute AString accessibilityInstantiator; */
pub GetAccessibilityInstantiator: unsafe extern "system" fn (this: *const nsIXULRuntime, aAccessibilityInstantiator: *mut ::nsstring::nsAString) -> ::nserror::nsresult,
/* readonly attribute boolean is64Bit; */
pub GetIs64Bit: unsafe extern "system" fn (this: *const nsIXULRuntime, aIs64Bit: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean isTextRecognitionSupported; */
pub GetIsTextRecognitionSupported: unsafe extern "system" fn (this: *const nsIXULRuntime, aIsTextRecognitionSupported: *mut bool) -> ::nserror::nsresult,
/* void invalidateCachesOnRestart (); */
pub InvalidateCachesOnRestart: unsafe extern "system" fn (this: *const nsIXULRuntime) -> ::nserror::nsresult,
/* readonly attribute PRTime replacedLockTime; */
pub GetReplacedLockTime: unsafe extern "system" fn (this: *const nsIXULRuntime, aReplacedLockTime: *mut PRTime) -> ::nserror::nsresult,
/* readonly attribute AUTF8String defaultUpdateChannel; */
pub GetDefaultUpdateChannel: unsafe extern "system" fn (this: *const nsIXULRuntime, aDefaultUpdateChannel: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute AUTF8String distributionID; */
pub GetDistributionID: unsafe extern "system" fn (this: *const nsIXULRuntime, aDistributionID: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute boolean windowsDLLBlocklistStatus; */
pub GetWindowsDLLBlocklistStatus: unsafe extern "system" fn (this: *const nsIXULRuntime, aWindowsDLLBlocklistStatus: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean restartedByOS; */
pub GetRestartedByOS: unsafe extern "system" fn (this: *const nsIXULRuntime, aRestartedByOS: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean chromeColorSchemeIsDark; */
pub GetChromeColorSchemeIsDark: unsafe extern "system" fn (this: *const nsIXULRuntime, aChromeColorSchemeIsDark: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean contentThemeDerivedColorSchemeIsDark; */
pub GetContentThemeDerivedColorSchemeIsDark: unsafe extern "system" fn (this: *const nsIXULRuntime, aContentThemeDerivedColorSchemeIsDark: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean prefersReducedMotion; */
pub GetPrefersReducedMotion: unsafe extern "system" fn (this: *const nsIXULRuntime, aPrefersReducedMotion: *mut bool) -> ::nserror::nsresult,
/* readonly attribute boolean drawInTitlebar; */
pub GetDrawInTitlebar: unsafe extern "system" fn (this: *const nsIXULRuntime, aDrawInTitlebar: *mut bool) -> ::nserror::nsresult,
/* readonly attribute ACString desktopEnvironment; */
pub GetDesktopEnvironment: unsafe extern "system" fn (this: *const nsIXULRuntime, aDesktopEnvironment: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute boolean isWayland; */
pub GetIsWayland: unsafe extern "system" fn (this: *const nsIXULRuntime, aIsWayland: *mut bool) -> ::nserror::nsresult,
/* readonly attribute AString processStartupShortcut; */
pub GetProcessStartupShortcut: unsafe extern "system" fn (this: *const nsIXULRuntime, aProcessStartupShortcut: *mut ::nsstring::nsAString) -> ::nserror::nsresult,
/* readonly attribute uint32_t launcherProcessState; */
pub GetLauncherProcessState: unsafe extern "system" fn (this: *const nsIXULRuntime, aLauncherProcessState: *mut u32) -> ::nserror::nsresult,
/* readonly attribute ACString lastAppVersion; */
pub GetLastAppVersion: unsafe extern "system" fn (this: *const nsIXULRuntime, aLastAppVersion: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
/* readonly attribute ACString lastAppBuildID; */
pub GetLastAppBuildID: unsafe extern "system" fn (this: *const nsIXULRuntime, aLastAppBuildID: *mut ::nsstring::nsACString) -> ::nserror::nsresult,
}
// The implementations of the function wrappers which are exposed to rust code.
// Call these methods rather than manually calling through the VTable struct.
impl nsIXULRuntime {
pub const eExperimentStatusUnenrolled: u8 = 0;
pub const eExperimentStatusControl: u8 = 1;
pub const eExperimentStatusTreatment: u8 = 2;
pub const eExperimentStatusDisqualified: u8 = 3;
pub const eExperimentStatusRollout: u8 = 4;
pub const eExperimentStatusCount: u8 = 5;
pub const LockdownEnabled: u8 = 1;
pub const MissingWebRender: u8 = 2;
pub const OperatingSystemNotSupported: u8 = 3;
pub const PrefNotSet: u8 = 4;
pub const MissingRemoteWebGL: u8 = 5;
pub const MissingNonNativeTheming: u8 = 6;
pub const DisabledByEnvVar: u8 = 7;
pub const DisabledBySafeMode: u8 = 8;
pub const DisabledByE10S: u8 = 9;
pub const DisabledByUserPref: u8 = 10;
pub const EnabledByUserPref: u8 = 11;
pub const DisabledByControlGroup: u8 = 12;
pub const EnabledByTreatmentGroup: u8 = 13;
pub const DisabledByDefault: u8 = 14;
pub const EnabledByDefault: u8 = 15;
pub const DecodersArentRemote: u8 = 16;
pub const IncompatibleMitigationPolicy: u8 = 17;
pub const eFissionStatusUnknown: u8 = 0;
pub const eFissionDisabledByE10sEnv: u8 = 3;
pub const eFissionEnabledByEnv: u8 = 4;
pub const eFissionDisabledByEnv: u8 = 5;
pub const eFissionEnabledByDefault: u8 = 7;
pub const eFissionDisabledByDefault: u8 = 8;
pub const eFissionEnabledByUserPref: u8 = 9;
pub const eFissionDisabledByUserPref: u8 = 10;
pub const eFissionDisabledByE10sOther: u8 = 11;
/// ```text
/// /**
/// * The legal values of processType.
/// */
/// ```
///
pub const PROCESS_TYPE_DEFAULT: u32 = 0;
pub const PROCESS_TYPE_CONTENT: u32 = 2;
pub const PROCESS_TYPE_IPDLUNITTEST: u32 = 3;
pub const PROCESS_TYPE_GMPLUGIN: u32 = 4;
pub const PROCESS_TYPE_GPU: u32 = 5;
pub const PROCESS_TYPE_VR: u32 = 6;
pub const PROCESS_TYPE_RDD: u32 = 7;
pub const PROCESS_TYPE_SOCKET: u32 = 8;
pub const PROCESS_TYPE_FORKSERVER: u32 = 10;
pub const PROCESS_TYPE_UTILITY: u32 = 11;
/// ```text
/// /**
/// * The current e10s-multi experiment number. Set dom.ipc.multiOptOut to (at
/// * least) this to disable it until the next experiment.
/// */
/// ```
///
pub const E10S_MULTI_EXPERIMENT: u32 = 1;
/// ```text
/// /**
/// * Whether the application was launched in safe mode.
/// */
/// ```
///
/// `readonly attribute boolean inSafeMode;`
#[inline]
pub unsafe fn GetInSafeMode(&self, aInSafeMode: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetInSafeMode)(self, aInSafeMode)
}
/// `readonly attribute nsIXULRuntime_ExperimentStatus win32kExperimentStatus;`
#[inline]
pub unsafe fn GetWin32kExperimentStatus(&self, aWin32kExperimentStatus: *mut u8) -> ::nserror::nsresult {
((*self.vtable).GetWin32kExperimentStatus)(self, aWin32kExperimentStatus)
}
/// `readonly attribute nsIXULRuntime_ContentWin32kLockdownState win32kLiveStatusTestingOnly;`
#[inline]
pub unsafe fn GetWin32kLiveStatusTestingOnly(&self, aWin32kLiveStatusTestingOnly: *mut u8) -> ::nserror::nsresult {
((*self.vtable).GetWin32kLiveStatusTestingOnly)(self, aWin32kLiveStatusTestingOnly)
}
/// `readonly attribute nsIXULRuntime_ContentWin32kLockdownState win32kSessionStatus;`
#[inline]
pub unsafe fn GetWin32kSessionStatus(&self, aWin32kSessionStatus: *mut u8) -> ::nserror::nsresult {
((*self.vtable).GetWin32kSessionStatus)(self, aWin32kSessionStatus)
}
/// ```text
/// /**
/// * Whether Fission should be automatically enabled for new browser windows.
/// * This may not match the value of the 'fission.autostart' pref.
/// *
/// * This value is guaranteed to remain constant for the length of a browser
/// * session.
/// */
/// ```
///
/// `readonly attribute boolean fissionAutostart;`
#[inline]
pub unsafe fn GetFissionAutostart(&self, aFissionAutostart: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetFissionAutostart)(self, aFissionAutostart)
}
/// ```text
/// /**
/// * The deciding factor which caused Fission to be enabled or disabled in
/// * this session. The string version is the same of the name of the constant,
/// * without the leading `eFission`, and with an initial lower-case letter.
/// */
/// ```
///
/// `readonly attribute nsIXULRuntime_FissionDecisionStatus fissionDecisionStatus;`
#[inline]
pub unsafe fn GetFissionDecisionStatus(&self, aFissionDecisionStatus: *mut u8) -> ::nserror::nsresult {
((*self.vtable).GetFissionDecisionStatus)(self, aFissionDecisionStatus)
}
/// `readonly attribute ACString fissionDecisionStatusString;`
#[inline]
pub unsafe fn GetFissionDecisionStatusString(&self, aFissionDecisionStatusString: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetFissionDecisionStatusString)(self, aFissionDecisionStatusString)
}
/// ```text
/// /**
/// * Whether session history is stored in the parent process.
/// */
/// ```
///
/// `readonly attribute boolean sessionHistoryInParent;`
#[inline]
pub unsafe fn GetSessionHistoryInParent(&self, aSessionHistoryInParent: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetSessionHistoryInParent)(self, aSessionHistoryInParent)
}
/// ```text
/// /**
/// * Whether Gecko code drives session store collection data.
/// */
/// ```
///
/// `readonly attribute boolean sessionStorePlatformCollection;`
#[inline]
pub unsafe fn GetSessionStorePlatformCollection(&self, aSessionStorePlatformCollection: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetSessionStorePlatformCollection)(self, aSessionStorePlatformCollection)
}
/// ```text
/// /**
/// * 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;`
#[inline]
pub unsafe fn GetLogConsoleErrors(&self, aLogConsoleErrors: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetLogConsoleErrors)(self, aLogConsoleErrors)
}
/// ```text
/// /**
/// * 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;`
#[inline]
pub unsafe fn SetLogConsoleErrors(&self, aLogConsoleErrors: bool) -> ::nserror::nsresult {
((*self.vtable).SetLogConsoleErrors)(self, aLogConsoleErrors)
}
/// ```text
/// /**
/// * 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;`
#[inline]
pub unsafe fn GetOS(&self, aOS: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetOS)(self, aOS)
}
/// ```text
/// /**
/// * 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;`
#[inline]
pub unsafe fn GetXPCOMABI(&self, aXPCOMABI: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetXPCOMABI)(self, aXPCOMABI)
}
/// ```text
/// /**
/// * A string tag identifying the target widget toolkit in use.
/// * This is taken from the MOZ_WIDGET_TOOLKIT configure variable.
/// */
/// ```
///
/// `readonly attribute AUTF8String widgetToolkit;`
#[inline]
pub unsafe fn GetWidgetToolkit(&self, aWidgetToolkit: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetWidgetToolkit)(self, aWidgetToolkit)
}
/// ```text
/// /**
/// * The type of the caller's process. Returns one of the values above.
/// */
/// ```
///
/// `readonly attribute unsigned long processType;`
#[inline]
pub unsafe fn GetProcessType(&self, aProcessType: *mut u32) -> ::nserror::nsresult {
((*self.vtable).GetProcessType)(self, aProcessType)
}
/// ```text
/// /**
/// * The system process ID of the caller's process.
/// */
/// ```
///
/// `readonly attribute unsigned long processID;`
#[inline]
pub unsafe fn GetProcessID(&self, aProcessID: *mut u32) -> ::nserror::nsresult {
((*self.vtable).GetProcessID)(self, aProcessID)
}
/// ```text
/// /**
/// * A globally unique and non-recycled ID of the caller's process.
/// */
/// ```
///
/// `readonly attribute uint64_t uniqueProcessID;`
#[inline]
pub unsafe fn GetUniqueProcessID(&self, aUniqueProcessID: *mut u64) -> ::nserror::nsresult {
((*self.vtable).GetUniqueProcessID)(self, aUniqueProcessID)
}
/// ```text
/// /**
/// * The type of remote content process we're running in.
/// * null if we're in the parent/chrome process. This can contain
/// * a URI if Fission is enabled, so don't use it for any kind of
/// * telemetry.
/// */
/// ```
///
/// `readonly attribute AUTF8String remoteType;`
#[inline]
pub unsafe fn GetRemoteType(&self, aRemoteType: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetRemoteType)(self, aRemoteType)
}
/// ```text
/// /**
/// * If true, browser tabs may be opened by default in a different process
/// * from the main browser UI.
/// */
/// ```
///
/// `readonly attribute boolean browserTabsRemoteAutostart;`
#[inline]
pub unsafe fn GetBrowserTabsRemoteAutostart(&self, aBrowserTabsRemoteAutostart: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetBrowserTabsRemoteAutostart)(self, aBrowserTabsRemoteAutostart)
}
/// ```text
/// /**
/// * Returns the number of content processes to use for normal web pages. If
/// * this value is > 1, then e10s-multi should be considered to be "on".
/// *
/// * NB: If browserTabsRemoteAutostart is false, then this value has no
/// * meaning and e10s should be considered to be "off"!
/// */
/// ```
///
/// `readonly attribute uint32_t maxWebProcessCount;`
#[inline]
pub unsafe fn GetMaxWebProcessCount(&self, aMaxWebProcessCount: *mut u32) -> ::nserror::nsresult {
((*self.vtable).GetMaxWebProcessCount)(self, aMaxWebProcessCount)
}
/// ```text
/// /**
/// * If true, the accessibility service is running.
/// */
/// ```
///
/// `readonly attribute boolean accessibilityEnabled;`
#[inline]
pub unsafe fn GetAccessibilityEnabled(&self, aAccessibilityEnabled: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetAccessibilityEnabled)(self, aAccessibilityEnabled)
}
/// ```text
/// /**
/// * Executable of Windows service that activated accessibility.
/// */
/// ```
///
/// `readonly attribute AString accessibilityInstantiator;`
#[inline]
pub unsafe fn GetAccessibilityInstantiator(&self, aAccessibilityInstantiator: *mut ::nsstring::nsAString) -> ::nserror::nsresult {
((*self.vtable).GetAccessibilityInstantiator)(self, aAccessibilityInstantiator)
}
/// ```text
/// /**
/// * Indicates whether the current Firefox build is 64-bit.
/// */
/// ```
///
/// `readonly attribute boolean is64Bit;`
#[inline]
pub unsafe fn GetIs64Bit(&self, aIs64Bit: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetIs64Bit)(self, aIs64Bit)
}
/// ```text
/// /**
/// * Indicates whether or not text recognition of images supported by the OS.
/// */
/// ```
///
/// `readonly attribute boolean isTextRecognitionSupported;`
#[inline]
pub unsafe fn GetIsTextRecognitionSupported(&self, aIsTextRecognitionSupported: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetIsTextRecognitionSupported)(self, aIsTextRecognitionSupported)
}
/// ```text
/// /**
/// * 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 ();`
#[inline]
pub unsafe fn InvalidateCachesOnRestart(&self, ) -> ::nserror::nsresult {
((*self.vtable).InvalidateCachesOnRestart)(self, )
}
/// ```text
/// /**
/// * 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.
/// */
/// ```
///
/// `readonly attribute PRTime replacedLockTime;`
#[inline]
pub unsafe fn GetReplacedLockTime(&self, aReplacedLockTime: *mut PRTime) -> ::nserror::nsresult {
((*self.vtable).GetReplacedLockTime)(self, aReplacedLockTime)
}
/// ```text
/// /**
/// * The default update channel (MOZ_UPDATE_CHANNEL).
/// */
/// ```
///
/// `readonly attribute AUTF8String defaultUpdateChannel;`
#[inline]
pub unsafe fn GetDefaultUpdateChannel(&self, aDefaultUpdateChannel: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetDefaultUpdateChannel)(self, aDefaultUpdateChannel)
}
/// ```text
/// /**
/// * The distribution ID for this build (MOZ_DISTRIBUTION_ID).
/// */
/// ```
///
/// `readonly attribute AUTF8String distributionID;`
#[inline]
pub unsafe fn GetDistributionID(&self, aDistributionID: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetDistributionID)(self, aDistributionID)
}
/// ```text
/// /**
/// * True if Windows DLL blocklist initialized correctly. This is
/// * primarily for automated testing purposes.
/// */
/// ```
///
/// `readonly attribute boolean windowsDLLBlocklistStatus;`
#[inline]
pub unsafe fn GetWindowsDLLBlocklistStatus(&self, aWindowsDLLBlocklistStatus: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetWindowsDLLBlocklistStatus)(self, aWindowsDLLBlocklistStatus)
}
/// ```text
/// /**
/// * True if this application was started by the OS as part of an automatic
/// * restart mechanism (such as RegisterApplicationRestart on Windows).
/// */
/// ```
///
/// `readonly attribute boolean restartedByOS;`
#[inline]
pub unsafe fn GetRestartedByOS(&self, aRestartedByOS: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetRestartedByOS)(self, aRestartedByOS)
}
/// ```text
/// /** Whether the chrome color-scheme is dark */
/// ```
///
/// `readonly attribute boolean chromeColorSchemeIsDark;`
#[inline]
pub unsafe fn GetChromeColorSchemeIsDark(&self, aChromeColorSchemeIsDark: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetChromeColorSchemeIsDark)(self, aChromeColorSchemeIsDark)
}
/// ```text
/// /** Whether the content color-scheme derived from the app theme is dark */
/// ```
///
/// `readonly attribute boolean contentThemeDerivedColorSchemeIsDark;`
#[inline]
pub unsafe fn GetContentThemeDerivedColorSchemeIsDark(&self, aContentThemeDerivedColorSchemeIsDark: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetContentThemeDerivedColorSchemeIsDark)(self, aContentThemeDerivedColorSchemeIsDark)
}
/// ```text
/// /** Whether the user prefers reduced motion */
/// ```
///
/// `readonly attribute boolean prefersReducedMotion;`
#[inline]
pub unsafe fn GetPrefersReducedMotion(&self, aPrefersReducedMotion: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetPrefersReducedMotion)(self, aPrefersReducedMotion)
}
/// ```text
/// /** Whether we should draw over the titlebar */
/// ```
///
/// `readonly attribute boolean drawInTitlebar;`
#[inline]
pub unsafe fn GetDrawInTitlebar(&self, aDrawInTitlebar: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetDrawInTitlebar)(self, aDrawInTitlebar)
}
/// ```text
/// /** Returns the desktop environment identifier. Only meaningful on GTK */
/// ```
///
/// `readonly attribute ACString desktopEnvironment;`
#[inline]
pub unsafe fn GetDesktopEnvironment(&self, aDesktopEnvironment: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetDesktopEnvironment)(self, aDesktopEnvironment)
}
/// ```text
/// /** Whether we use Wayland. Only meaningful on GTK */
/// ```
///
/// `readonly attribute boolean isWayland;`
#[inline]
pub unsafe fn GetIsWayland(&self, aIsWayland: *mut bool) -> ::nserror::nsresult {
((*self.vtable).GetIsWayland)(self, aIsWayland)
}
/// ```text
/// /**
/// * The path of the shortcut used to start the current process, or "" if none.
/// *
/// * Windows Main process only, otherwise throws NS_ERROR_NOT_AVAILABLE
/// *
/// * May be mising in some cases where the user did launch from a shortcut:
/// * - If the updater ran on startup
/// * - If the AUMID was set before the shortcut could be saved
/// *
/// * @throw NS_ERROR_NOT_AVAILABLE if not available.
/// */
/// ```
///
/// `readonly attribute AString processStartupShortcut;`
#[inline]
pub unsafe fn GetProcessStartupShortcut(&self, aProcessStartupShortcut: *mut ::nsstring::nsAString) -> ::nserror::nsresult {
((*self.vtable).GetProcessStartupShortcut)(self, aProcessStartupShortcut)
}
/// ```text
/// /**
/// * Returns a value corresponding to one of the
/// * |mozilla::LauncherRegistryInfo::EnabledState| values.
/// */
/// ```
///
/// `readonly attribute uint32_t launcherProcessState;`
#[inline]
pub unsafe fn GetLauncherProcessState(&self, aLauncherProcessState: *mut u32) -> ::nserror::nsresult {
((*self.vtable).GetLauncherProcessState)(self, aLauncherProcessState)
}
/// ```text
/// /**
/// * Returns the last application version that used the current profile or null
/// * if the last version could not be found (compatibility.ini was either
/// * missing or invalid). Throws NS_ERROR_UNAVAILABLE if called from a content
/// * process.
/// */
/// ```
///
/// `readonly attribute ACString lastAppVersion;`
#[inline]
pub unsafe fn GetLastAppVersion(&self, aLastAppVersion: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetLastAppVersion)(self, aLastAppVersion)
}
/// ```text
/// /**
/// * Returns the last application build ID that used the current profile or null
/// * if the last build ID could not be found (compatibility.ini was either
/// * missing or invalid). Throws NS_ERROR_UNAVAILABLE if called from a content
/// * process.
/// */
/// ```
///
/// `readonly attribute ACString lastAppBuildID;`
#[inline]
pub unsafe fn GetLastAppBuildID(&self, aLastAppBuildID: *mut ::nsstring::nsACString) -> ::nserror::nsresult {
((*self.vtable).GetLastAppBuildID)(self, aLastAppBuildID)
}
}