OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // NotificationObserver::Observe. | 52 // NotificationObserver::Observe. |
53 virtual void Observe(NotificationType type, | 53 virtual void Observe(NotificationType type, |
54 const NotificationSource& source, | 54 const NotificationSource& source, |
55 const NotificationDetails& details); | 55 const NotificationDetails& details); |
56 | 56 |
57 void OnWindowOpened(const AccessibilityWindowInfo* details); | 57 void OnWindowOpened(const AccessibilityWindowInfo* details); |
58 void OnWindowClosed(const AccessibilityWindowInfo* details); | 58 void OnWindowClosed(const AccessibilityWindowInfo* details); |
59 void OnControlFocused(const AccessibilityControlInfo* details); | 59 void OnControlFocused(const AccessibilityControlInfo* details); |
60 void OnControlAction(const AccessibilityControlInfo* details); | 60 void OnControlAction(const AccessibilityControlInfo* details); |
61 void OnTextChanged(const AccessibilityControlInfo* details); | 61 void OnTextChanged(const AccessibilityControlInfo* details); |
| 62 void OnMenuOpened(const AccessibilityMenuInfo* details); |
| 63 void OnMenuClosed(const AccessibilityMenuInfo* details); |
62 | 64 |
63 void DispatchEvent(Profile* profile, | 65 void DispatchEvent(Profile* profile, |
64 const char* event_name, | 66 const char* event_name, |
65 const std::string& json_args); | 67 const std::string& json_args); |
66 | 68 |
67 // Used for tracking registrations to history service notifications. | 69 // Used for tracking registrations to history service notifications. |
68 NotificationRegistrar registrar_; | 70 NotificationRegistrar registrar_; |
69 | 71 |
70 DictionaryValue last_focused_control_dict_; | 72 DictionaryValue last_focused_control_dict_; |
71 | 73 |
(...skipping 16 matching lines...) Expand all Loading... |
88 | 90 |
89 // API function that returns the most recent focused control. | 91 // API function that returns the most recent focused control. |
90 class GetFocusedControlFunction : public SyncExtensionFunction { | 92 class GetFocusedControlFunction : public SyncExtensionFunction { |
91 virtual ~GetFocusedControlFunction() {} | 93 virtual ~GetFocusedControlFunction() {} |
92 virtual bool RunImpl(); | 94 virtual bool RunImpl(); |
93 DECLARE_EXTENSION_FUNCTION_NAME( | 95 DECLARE_EXTENSION_FUNCTION_NAME( |
94 "experimental.accessibility.getFocusedControl") | 96 "experimental.accessibility.getFocusedControl") |
95 }; | 97 }; |
96 | 98 |
97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ | 99 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ |
OLD | NEW |