Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set ts=2 et sw=2 tw=80: */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | namespace mozilla { |
michael@0 | 8 | namespace a11y { |
michael@0 | 9 | |
michael@0 | 10 | enum EPlatformDisabledState { |
michael@0 | 11 | ePlatformIsForceEnabled = -1, |
michael@0 | 12 | ePlatformIsEnabled = 0, |
michael@0 | 13 | ePlatformIsDisabled = 1 |
michael@0 | 14 | }; |
michael@0 | 15 | |
michael@0 | 16 | /** |
michael@0 | 17 | * Return the platform disabled state. |
michael@0 | 18 | */ |
michael@0 | 19 | EPlatformDisabledState PlatformDisabledState(); |
michael@0 | 20 | |
michael@0 | 21 | #ifdef MOZ_ACCESSIBILITY_ATK |
michael@0 | 22 | /** |
michael@0 | 23 | * Perform initialization that should be done as soon as possible, in order |
michael@0 | 24 | * to minimize startup time. |
michael@0 | 25 | * XXX: this function and the next defined in ApplicationAccessibleWrap.cpp |
michael@0 | 26 | */ |
michael@0 | 27 | void PreInit(); |
michael@0 | 28 | #endif |
michael@0 | 29 | |
michael@0 | 30 | #if defined(MOZ_ACCESSIBILITY_ATK) || defined(XP_MACOSX) |
michael@0 | 31 | /** |
michael@0 | 32 | * Is platform accessibility enabled. |
michael@0 | 33 | * Only used on linux with atk and MacOS for now. |
michael@0 | 34 | */ |
michael@0 | 35 | bool ShouldA11yBeEnabled(); |
michael@0 | 36 | #endif |
michael@0 | 37 | |
michael@0 | 38 | /** |
michael@0 | 39 | * Called to initialize platform specific accessibility support. |
michael@0 | 40 | * Note this is called after internal accessibility support is initialized. |
michael@0 | 41 | */ |
michael@0 | 42 | void PlatformInit(); |
michael@0 | 43 | |
michael@0 | 44 | /** |
michael@0 | 45 | * Shutdown platform accessibility. |
michael@0 | 46 | * Note this is called before internal accessibility support is shutdown. |
michael@0 | 47 | */ |
michael@0 | 48 | void PlatformShutdown(); |
michael@0 | 49 | |
michael@0 | 50 | } // namespace a11y |
michael@0 | 51 | } // namespace mozilla |
michael@0 | 52 |