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