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