1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 enum EPlatformDisabledState
{
11 ePlatformIsForceEnabled
= -1,
12 ePlatformIsEnabled
= 0,
13 ePlatformIsDisabled
= 1
17 * Return the platform disabled state.
19 EPlatformDisabledState
PlatformDisabledState();
21 #ifdef MOZ_ACCESSIBILITY_ATK
23 * Perform initialization that should be done as soon as possible, in order
24 * to minimize startup time.
25 * XXX: this function and the next defined in ApplicationAccessibleWrap.cpp
30 #if defined(MOZ_ACCESSIBILITY_ATK) || defined(XP_MACOSX)
32 * Is platform accessibility enabled.
33 * Only used on linux with atk and MacOS for now.
35 bool ShouldA11yBeEnabled();
39 * Called to initialize platform specific accessibility support.
40 * Note this is called after internal accessibility support is initialized.
45 * Shutdown platform accessibility.
46 * Note this is called before internal accessibility support is shutdown.
48 void PlatformShutdown();
51 } // namespace mozilla