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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // API function that returns alerts being shown on the give tab. | 129 // API function that returns alerts being shown on the give tab. |
130 class AccessibilityPrivateGetAlertsForTabFunction | 130 class AccessibilityPrivateGetAlertsForTabFunction |
131 : public ChromeSyncExtensionFunction { | 131 : public ChromeSyncExtensionFunction { |
132 virtual ~AccessibilityPrivateGetAlertsForTabFunction() {} | 132 virtual ~AccessibilityPrivateGetAlertsForTabFunction() {} |
133 virtual bool RunSync() OVERRIDE; | 133 virtual bool RunSync() OVERRIDE; |
134 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.getAlertsForTab", | 134 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.getAlertsForTab", |
135 ACCESSIBILITY_PRIVATE_GETALERTSFORTAB) | 135 ACCESSIBILITY_PRIVATE_GETALERTSFORTAB) |
136 }; | 136 }; |
137 | 137 |
| 138 // API function that sets the location of the accessibility focus ring. |
| 139 class AccessibilityPrivateSetFocusRingFunction |
| 140 : public ChromeSyncExtensionFunction { |
| 141 virtual ~AccessibilityPrivateSetFocusRingFunction() {} |
| 142 virtual bool RunSync() OVERRIDE; |
| 143 DECLARE_EXTENSION_FUNCTION("accessibilityPrivate.setFocusRing", |
| 144 ACCESSIBILITY_PRIVATE_SETFOCUSRING) |
| 145 }; |
| 146 |
138 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 147 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
OLD | NEW |