OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // For testing. | 92 // For testing. |
93 ControlEventCallback control_event_callback_; | 93 ControlEventCallback control_event_callback_; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter); | 95 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter); |
96 }; | 96 }; |
97 | 97 |
98 // API function that enables or disables accessibility support. Event | 98 // API function that enables or disables accessibility support. Event |
99 // listeners are only installed when accessibility support is enabled, to | 99 // listeners are only installed when accessibility support is enabled, to |
100 // minimize the impact. | 100 // minimize the impact. |
101 class AccessibilitySetAccessibilityEnabledFunction | 101 class AccessibilityPrivateSetAccessibilityEnabledFunction |
102 : public ChromeSyncExtensionFunction { | 102 : public ChromeSyncExtensionFunction { |
103 virtual ~AccessibilitySetAccessibilityEnabledFunction() {} | 103 virtual ~AccessibilityPrivateSetAccessibilityEnabledFunction() {} |
104 virtual bool RunImpl() OVERRIDE; | 104 virtual bool RunImpl() OVERRIDE; |
105 DECLARE_EXTENSION_FUNCTION( | 105 DECLARE_EXTENSION_FUNCTION( |
106 "experimental.accessibility.setAccessibilityEnabled", | 106 "accessibilityPrivate.setAccessibilityEnabled", |
107 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED) | 107 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED) |
108 }; | 108 }; |
109 | 109 |
110 // API function that enables or disables web content accessibility support. | 110 // API function that enables or disables web content accessibility support. |
111 class AccessibilitySetNativeAccessibilityEnabledFunction | 111 class AccessibilityPrivateSetNativeAccessibilityEnabledFunction |
112 : public ChromeSyncExtensionFunction { | 112 : public ChromeSyncExtensionFunction { |
113 virtual ~AccessibilitySetNativeAccessibilityEnabledFunction() {} | 113 virtual ~AccessibilityPrivateSetNativeAccessibilityEnabledFunction() {} |
114 virtual bool RunImpl() OVERRIDE; | 114 virtual bool RunImpl() OVERRIDE; |
115 DECLARE_EXTENSION_FUNCTION( | 115 DECLARE_EXTENSION_FUNCTION( |
116 "experimental.accessibility.setNativeAccessibilityEnabled", | 116 "accessibilityPrivate.setNativeAccessibilityEnabled", |
117 EXPERIMENTAL_ACCESSIBILITY_SETNATIVEACCESSIBILITYENABLED) | 117 EXPERIMENTAL_ACCESSIBILITY_SETNATIVEACCESSIBILITYENABLED) |
118 }; | 118 }; |
119 | 119 |
120 // API function that returns the most recent focused control. | 120 // API function that returns the most recent focused control. |
121 class AccessibilityGetFocusedControlFunction | 121 class AccessibilityPrivateGetFocusedControlFunction |
122 : public ChromeSyncExtensionFunction { | 122 : public ChromeSyncExtensionFunction { |
123 virtual ~AccessibilityGetFocusedControlFunction() {} | 123 virtual ~AccessibilityPrivateGetFocusedControlFunction() {} |
124 virtual bool RunImpl() OVERRIDE; | 124 virtual bool RunImpl() OVERRIDE; |
125 DECLARE_EXTENSION_FUNCTION( | 125 DECLARE_EXTENSION_FUNCTION( |
126 "experimental.accessibility.getFocusedControl", | 126 "accessibilityPrivate.getFocusedControl", |
127 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL) | 127 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL) |
128 }; | 128 }; |
129 | 129 |
130 // API function that returns alerts being shown on the give tab. | 130 // API function that returns alerts being shown on the give tab. |
131 class AccessibilityGetAlertsForTabFunction | 131 class AccessibilityPrivateGetAlertsForTabFunction |
132 : public ChromeSyncExtensionFunction { | 132 : public ChromeSyncExtensionFunction { |
133 virtual ~AccessibilityGetAlertsForTabFunction() {} | 133 virtual ~AccessibilityPrivateGetAlertsForTabFunction() {} |
134 virtual bool RunImpl() OVERRIDE; | 134 virtual bool RunImpl() OVERRIDE; |
135 DECLARE_EXTENSION_FUNCTION( | 135 DECLARE_EXTENSION_FUNCTION( |
136 "experimental.accessibility.getAlertsForTab", | 136 "accessibilityPrivate.getAlertsForTab", |
137 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB) | 137 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB) |
138 }; | 138 }; |
139 | 139 |
140 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 140 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
OLD | NEW |