| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void AddOnEnabledListener(Callback* callback); | 44 void AddOnEnabledListener(Callback* callback); |
| 45 void AddOnDisabledListener(Callback* callback); | 45 void AddOnDisabledListener(Callback* callback); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 friend struct DefaultSingletonTraits<ExtensionAccessibilityEventRouter>; | 48 friend struct DefaultSingletonTraits<ExtensionAccessibilityEventRouter>; |
| 49 | 49 |
| 50 ExtensionAccessibilityEventRouter(); | 50 ExtensionAccessibilityEventRouter(); |
| 51 virtual ~ExtensionAccessibilityEventRouter(); | 51 virtual ~ExtensionAccessibilityEventRouter(); |
| 52 | 52 |
| 53 // NotificationObserver::Observe. | 53 // NotificationObserver::Observe. |
| 54 virtual void Observe(NotificationType type, | 54 virtual void Observe(int type, |
| 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); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 91 | 91 |
| 92 // API function that returns the most recent focused control. | 92 // API function that returns the most recent focused control. |
| 93 class GetFocusedControlFunction : public SyncExtensionFunction { | 93 class GetFocusedControlFunction : public SyncExtensionFunction { |
| 94 virtual ~GetFocusedControlFunction() {} | 94 virtual ~GetFocusedControlFunction() {} |
| 95 virtual bool RunImpl(); | 95 virtual bool RunImpl(); |
| 96 DECLARE_EXTENSION_FUNCTION_NAME( | 96 DECLARE_EXTENSION_FUNCTION_NAME( |
| 97 "experimental.accessibility.getFocusedControl") | 97 "experimental.accessibility.getFocusedControl") |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ | 100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ |
| OLD | NEW |