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

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

Issue 258063008: Revert "Rename experimental.accessibility to accessibilityPrivate" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « .gitmodules ('k') | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 AccessibilityPrivateSetAccessibilityEnabledFunction 101 class AccessibilitySetAccessibilityEnabledFunction
102 : public ChromeSyncExtensionFunction { 102 : public ChromeSyncExtensionFunction {
103 virtual ~AccessibilityPrivateSetAccessibilityEnabledFunction() {} 103 virtual ~AccessibilitySetAccessibilityEnabledFunction() {}
104 virtual bool RunImpl() OVERRIDE; 104 virtual bool RunImpl() OVERRIDE;
105 DECLARE_EXTENSION_FUNCTION( 105 DECLARE_EXTENSION_FUNCTION(
106 "accessibilityPrivate.setAccessibilityEnabled", 106 "experimental.accessibility.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 AccessibilityPrivateSetNativeAccessibilityEnabledFunction 111 class AccessibilitySetNativeAccessibilityEnabledFunction
112 : public ChromeSyncExtensionFunction { 112 : public ChromeSyncExtensionFunction {
113 virtual ~AccessibilityPrivateSetNativeAccessibilityEnabledFunction() {} 113 virtual ~AccessibilitySetNativeAccessibilityEnabledFunction() {}
114 virtual bool RunImpl() OVERRIDE; 114 virtual bool RunImpl() OVERRIDE;
115 DECLARE_EXTENSION_FUNCTION( 115 DECLARE_EXTENSION_FUNCTION(
116 "accessibilityPrivate.setNativeAccessibilityEnabled", 116 "experimental.accessibility.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 AccessibilityPrivateGetFocusedControlFunction 121 class AccessibilityGetFocusedControlFunction
122 : public ChromeSyncExtensionFunction { 122 : public ChromeSyncExtensionFunction {
123 virtual ~AccessibilityPrivateGetFocusedControlFunction() {} 123 virtual ~AccessibilityGetFocusedControlFunction() {}
124 virtual bool RunImpl() OVERRIDE; 124 virtual bool RunImpl() OVERRIDE;
125 DECLARE_EXTENSION_FUNCTION( 125 DECLARE_EXTENSION_FUNCTION(
126 "accessibilityPrivate.getFocusedControl", 126 "experimental.accessibility.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 AccessibilityPrivateGetAlertsForTabFunction 131 class AccessibilityGetAlertsForTabFunction
132 : public ChromeSyncExtensionFunction { 132 : public ChromeSyncExtensionFunction {
133 virtual ~AccessibilityPrivateGetAlertsForTabFunction() {} 133 virtual ~AccessibilityGetAlertsForTabFunction() {}
134 virtual bool RunImpl() OVERRIDE; 134 virtual bool RunImpl() OVERRIDE;
135 DECLARE_EXTENSION_FUNCTION( 135 DECLARE_EXTENSION_FUNCTION(
136 "accessibilityPrivate.getAlertsForTab", 136 "experimental.accessibility.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_
OLDNEW
« no previous file with comments | « .gitmodules ('k') | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698