Bumping manifests a=b2g-bump
[gecko.git] / accessible / base / Platform.h
blobfa56963fdbed42fa74f0113f1809fc62ea5509a4
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/. */
7 namespace mozilla {
8 namespace a11y {
10 enum EPlatformDisabledState {
11 ePlatformIsForceEnabled = -1,
12 ePlatformIsEnabled = 0,
13 ePlatformIsDisabled = 1
16 /**
17 * Return the platform disabled state.
19 EPlatformDisabledState PlatformDisabledState();
21 #ifdef MOZ_ACCESSIBILITY_ATK
22 /**
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
27 void PreInit();
28 #endif
30 #if defined(MOZ_ACCESSIBILITY_ATK) || defined(XP_MACOSX)
31 /**
32 * Is platform accessibility enabled.
33 * Only used on linux with atk and MacOS for now.
35 bool ShouldA11yBeEnabled();
36 #endif
38 /**
39 * Called to initialize platform specific accessibility support.
40 * Note this is called after internal accessibility support is initialized.
42 void PlatformInit();
44 /**
45 * Shutdown platform accessibility.
46 * Note this is called before internal accessibility support is shutdown.
48 void PlatformShutdown();
50 } // namespace a11y
51 } // namespace mozilla