1 // Copyright (c) 2018 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Define all the command-line switches used by ui/accessibility. 6 #ifndef UI_ACCESSIBILITY_ACCESSIBILITY_SWITCHES_H_ 7 #define UI_ACCESSIBILITY_ACCESSIBILITY_SWITCHES_H_ 8 9 #include "build/build_config.h" 10 #include "ui/accessibility/ax_base_export.h" 11 12 namespace switches { 13 14 AX_BASE_EXPORT extern const char kEnableExperimentalAccessibilityAutoclick[]; 15 AX_BASE_EXPORT extern const char 16 kEnableExperimentalAccessibilityLabelsDebugging[]; 17 AX_BASE_EXPORT extern const char 18 kEnableExperimentalAccessibilityLanguageDetection[]; 19 AX_BASE_EXPORT extern const char 20 kEnableExperimentalAccessibilityLanguageDetectionDynamic[]; 21 AX_BASE_EXPORT extern const char 22 kEnableExperimentalAccessibilitySwitchAccessText[]; 23 AX_BASE_EXPORT extern const char 24 kEnableExperimentalAccessibilityChromeVoxAnnotations[]; 25 AX_BASE_EXPORT extern const char kEnableSwitchAccessPointScanning[]; 26 27 // Returns true if experimental accessibility language detection is enabled. 28 AX_BASE_EXPORT bool IsExperimentalAccessibilityLanguageDetectionEnabled(); 29 30 // Returns true if experimental accessibility language detection support for 31 // dynamic content is enabled. 32 AX_BASE_EXPORT bool 33 IsExperimentalAccessibilityLanguageDetectionDynamicEnabled(); 34 35 // Returns true if experimental accessibility Switch Access text is enabled. 36 AX_BASE_EXPORT bool IsExperimentalAccessibilitySwitchAccessTextEnabled(); 37 38 #if defined(OS_WIN) 39 AX_BASE_EXPORT extern const char kEnableExperimentalUIAutomation[]; 40 #endif 41 42 // Returns true if experimental support for UIAutomation is enabled. 43 AX_BASE_EXPORT bool IsExperimentalAccessibilityPlatformUIAEnabled(); 44 45 // Returns true if Switch Access point scanning is enabled. 46 AX_BASE_EXPORT bool IsSwitchAccessPointScanningEnabled(); 47 48 // Optionally disable AXMenuList, which makes the internal pop-up menu 49 // UI for a select element directly accessible. 50 AX_BASE_EXPORT extern const char kDisableAXMenuList[]; 51 52 } // namespace switches 53 54 #endif // UI_ACCESSIBILITY_ACCESSIBILITY_SWITCHES_H_ 55