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> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback_old.h" |
13 #include "base/memory/singleton.h" | 13 #include "base/memory/singleton.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "chrome/browser/accessibility_events.h" | 15 #include "chrome/browser/accessibility_events.h" |
16 #include "chrome/browser/extensions/extension_function.h" | 16 #include "chrome/browser/extensions/extension_function.h" |
17 #include "content/common/notification_observer.h" | 17 #include "content/common/notification_observer.h" |
18 #include "content/common/notification_registrar.h" | 18 #include "content/common/notification_registrar.h" |
19 | 19 |
20 // Observes the profile and routes accessibility notifications as events | 20 // Observes the profile and routes accessibility notifications as events |
21 // to the extension system. | 21 // to the extension system. |
22 class ExtensionAccessibilityEventRouter : public NotificationObserver { | 22 class ExtensionAccessibilityEventRouter : public NotificationObserver { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |