Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1293)

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_api.h

Issue 14473011: Adds new experimental accessibility extension api to enable or disable native accessibility. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address Dominic's comments. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // minimize the impact. 73 // minimize the impact.
74 class AccessibilitySetAccessibilityEnabledFunction 74 class AccessibilitySetAccessibilityEnabledFunction
75 : public SyncExtensionFunction { 75 : public SyncExtensionFunction {
76 virtual ~AccessibilitySetAccessibilityEnabledFunction() {} 76 virtual ~AccessibilitySetAccessibilityEnabledFunction() {}
77 virtual bool RunImpl() OVERRIDE; 77 virtual bool RunImpl() OVERRIDE;
78 DECLARE_EXTENSION_FUNCTION( 78 DECLARE_EXTENSION_FUNCTION(
79 "experimental.accessibility.setAccessibilityEnabled", 79 "experimental.accessibility.setAccessibilityEnabled",
80 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED) 80 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED)
81 }; 81 };
82 82
83 // API function that enables or disables web content accessibility support.
84 class AccessibilitySetNativeAccessibilityEnabledFunction
85 : public SyncExtensionFunction {
86 virtual ~AccessibilitySetNativeAccessibilityEnabledFunction() {}
87 virtual bool RunImpl() OVERRIDE;
88 DECLARE_EXTENSION_FUNCTION(
89 "experimental.accessibility.setNativeAccessibilityEnabled",
90 EXPERIMENTAL_ACCESSIBILITY_SETNATIVEACCESSIBILITYENABLED)
91 };
92
83 // API function that returns the most recent focused control. 93 // API function that returns the most recent focused control.
84 class AccessibilityGetFocusedControlFunction : public SyncExtensionFunction { 94 class AccessibilityGetFocusedControlFunction : public SyncExtensionFunction {
85 virtual ~AccessibilityGetFocusedControlFunction() {} 95 virtual ~AccessibilityGetFocusedControlFunction() {}
86 virtual bool RunImpl() OVERRIDE; 96 virtual bool RunImpl() OVERRIDE;
87 DECLARE_EXTENSION_FUNCTION( 97 DECLARE_EXTENSION_FUNCTION(
88 "experimental.accessibility.getFocusedControl", 98 "experimental.accessibility.getFocusedControl",
89 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL) 99 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL)
90 }; 100 };
91 101
92 // API function that returns alerts being shown on the give tab. 102 // API function that returns alerts being shown on the give tab.
93 class AccessibilityGetAlertsForTabFunction : public SyncExtensionFunction { 103 class AccessibilityGetAlertsForTabFunction : public SyncExtensionFunction {
94 virtual ~AccessibilityGetAlertsForTabFunction() {} 104 virtual ~AccessibilityGetAlertsForTabFunction() {}
95 virtual bool RunImpl() OVERRIDE; 105 virtual bool RunImpl() OVERRIDE;
96 DECLARE_EXTENSION_FUNCTION( 106 DECLARE_EXTENSION_FUNCTION(
97 "experimental.accessibility.getAlertsForTab", 107 "experimental.accessibility.getAlertsForTab",
98 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB) 108 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB)
99 }; 109 };
100 110
101 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 111 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698