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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void OnWindowOpened(const AccessibilityWindowInfo* details); | 49 void OnWindowOpened(const AccessibilityWindowInfo* details); |
50 void OnWindowClosed(const AccessibilityWindowInfo* details); | 50 void OnWindowClosed(const AccessibilityWindowInfo* details); |
51 void OnControlFocused(const AccessibilityControlInfo* details); | 51 void OnControlFocused(const AccessibilityControlInfo* details); |
52 void OnControlAction(const AccessibilityControlInfo* details); | 52 void OnControlAction(const AccessibilityControlInfo* details); |
53 void OnTextChanged(const AccessibilityControlInfo* details); | 53 void OnTextChanged(const AccessibilityControlInfo* details); |
54 void OnMenuOpened(const AccessibilityMenuInfo* details); | 54 void OnMenuOpened(const AccessibilityMenuInfo* details); |
55 void OnMenuClosed(const AccessibilityMenuInfo* details); | 55 void OnMenuClosed(const AccessibilityMenuInfo* details); |
56 | 56 |
57 void DispatchEvent(Profile* profile, | 57 void DispatchEvent(Profile* profile, |
58 const char* event_name, | 58 const char* event_name, |
59 const std::string& json_args); | 59 scoped_ptr<base::ListValue> event_args); |
60 | 60 |
61 // Used for tracking registrations to history service notifications. | 61 // Used for tracking registrations to history service notifications. |
62 content::NotificationRegistrar registrar_; | 62 content::NotificationRegistrar registrar_; |
63 | 63 |
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 }; |
(...skipping 18 matching lines...) Expand all Loading... |
88 | 88 |
89 // API function that returns alerts being shown on the give tab. | 89 // API function that returns alerts being shown on the give tab. |
90 class GetAlertsForTabFunction : public SyncExtensionFunction { | 90 class GetAlertsForTabFunction : public SyncExtensionFunction { |
91 virtual ~GetAlertsForTabFunction() {} | 91 virtual ~GetAlertsForTabFunction() {} |
92 virtual bool RunImpl() OVERRIDE; | 92 virtual bool RunImpl() OVERRIDE; |
93 DECLARE_EXTENSION_FUNCTION_NAME( | 93 DECLARE_EXTENSION_FUNCTION_NAME( |
94 "experimental.accessibility.getAlertsForTab") | 94 "experimental.accessibility.getAlertsForTab") |
95 }; | 95 }; |
96 | 96 |
97 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ | 97 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ |
OLD | NEW |