| 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 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const content::NotificationDetails& details) OVERRIDE; | 48 const content::NotificationDetails& details) OVERRIDE; |
| 49 | 49 |
| 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 void OnVolumeChanged(const AccessibilityVolumeInfo* details); | 57 void OnVolumeChanged(const AccessibilityVolumeInfo* details); |
| 58 void OnScreenUnlocked(const ScreenUnlockedEventInfo* details); |
| 59 void OnWokeUp(const WokeUpEventInfo* details); |
| 58 | 60 |
| 59 void DispatchEvent(Profile* profile, | 61 void DispatchEvent(Profile* profile, |
| 60 const char* event_name, | 62 const char* event_name, |
| 61 const std::string& json_args); | 63 const std::string& json_args); |
| 62 | 64 |
| 63 // Used for tracking registrations to history service notifications. | 65 // Used for tracking registrations to history service notifications. |
| 64 content::NotificationRegistrar registrar_; | 66 content::NotificationRegistrar registrar_; |
| 65 | 67 |
| 66 DictionaryValue last_focused_control_dict_; | 68 DictionaryValue last_focused_control_dict_; |
| 67 | 69 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 82 | 84 |
| 83 // API function that returns the most recent focused control. | 85 // API function that returns the most recent focused control. |
| 84 class GetFocusedControlFunction : public SyncExtensionFunction { | 86 class GetFocusedControlFunction : public SyncExtensionFunction { |
| 85 virtual ~GetFocusedControlFunction() {} | 87 virtual ~GetFocusedControlFunction() {} |
| 86 virtual bool RunImpl() OVERRIDE; | 88 virtual bool RunImpl() OVERRIDE; |
| 87 DECLARE_EXTENSION_FUNCTION_NAME( | 89 DECLARE_EXTENSION_FUNCTION_NAME( |
| 88 "experimental.accessibility.getFocusedControl") | 90 "experimental.accessibility.getFocusedControl") |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ | 93 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ |
| OLD | NEW |