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