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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 DictionaryValue last_focused_control_dict_; | 64 DictionaryValue last_focused_control_dict_; |
65 | 65 |
66 bool enabled_; | 66 bool enabled_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter); | 68 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter); |
69 }; | 69 }; |
70 | 70 |
71 // API function that enables or disables accessibility support. Event | 71 // API function that enables or disables accessibility support. Event |
72 // listeners are only installed when accessibility support is enabled, to | 72 // listeners are only installed when accessibility support is enabled, to |
73 // minimize the impact. | 73 // minimize the impact. |
74 class SetAccessibilityEnabledFunction : public SyncExtensionFunction { | 74 class AccessibilitySetAccessibilityEnabledFunction |
75 virtual ~SetAccessibilityEnabledFunction() {} | 75 : public SyncExtensionFunction { |
| 76 virtual ~AccessibilitySetAccessibilityEnabledFunction() {} |
76 virtual bool RunImpl() OVERRIDE; | 77 virtual bool RunImpl() OVERRIDE; |
77 DECLARE_EXTENSION_FUNCTION( | 78 DECLARE_EXTENSION_FUNCTION( |
78 "experimental.accessibility.setAccessibilityEnabled", | 79 "experimental.accessibility.setAccessibilityEnabled", |
79 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED) | 80 EXPERIMENTAL_ACCESSIBILITY_SETACCESSIBILITYENABLED) |
80 }; | 81 }; |
81 | 82 |
82 // API function that returns the most recent focused control. | 83 // API function that returns the most recent focused control. |
83 class GetFocusedControlFunction : public SyncExtensionFunction { | 84 class AccessibilityGetFocusedControlFunction : public SyncExtensionFunction { |
84 virtual ~GetFocusedControlFunction() {} | 85 virtual ~AccessibilityGetFocusedControlFunction() {} |
85 virtual bool RunImpl() OVERRIDE; | 86 virtual bool RunImpl() OVERRIDE; |
86 DECLARE_EXTENSION_FUNCTION( | 87 DECLARE_EXTENSION_FUNCTION( |
87 "experimental.accessibility.getFocusedControl", | 88 "experimental.accessibility.getFocusedControl", |
88 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL) | 89 EXPERIMENTAL_ACCESSIBILITY_GETFOCUSEDCONTROL) |
89 }; | 90 }; |
90 | 91 |
91 // API function that returns alerts being shown on the give tab. | 92 // API function that returns alerts being shown on the give tab. |
92 class GetAlertsForTabFunction : public SyncExtensionFunction { | 93 class AccessibilityGetAlertsForTabFunction : public SyncExtensionFunction { |
93 virtual ~GetAlertsForTabFunction() {} | 94 virtual ~AccessibilityGetAlertsForTabFunction() {} |
94 virtual bool RunImpl() OVERRIDE; | 95 virtual bool RunImpl() OVERRIDE; |
95 DECLARE_EXTENSION_FUNCTION( | 96 DECLARE_EXTENSION_FUNCTION( |
96 "experimental.accessibility.getAlertsForTab", | 97 "experimental.accessibility.getAlertsForTab", |
97 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB) | 98 EXPERIMENTAL_ACCESSIBILITY_GETALERTSFORTAB) |
98 }; | 99 }; |
99 | 100 |
100 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 101 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
OLD | NEW |