OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL_AP
I_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL_AP
I_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL_AP
I_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL_AP
I_H_ |
7 | 7 |
8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 struct AXEventNotificationDetails; | 13 struct AXEventNotificationDetails; |
14 } // namespace content | 14 } // namespace content |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 struct AXNodeData; | 17 struct AXNodeData; |
18 } | 18 } |
19 | 19 |
20 namespace extensions { | 20 namespace extensions { |
21 | 21 |
22 // Implementation of the chrome.automation API. | 22 // Implementation of the chrome.automation API. |
23 class AutomationInternalEnableCurrentTabFunction | 23 class AutomationInternalEnableCurrentTabFunction |
24 : public ChromeAsyncExtensionFunction { | 24 : public ChromeAsyncExtensionFunction { |
25 DECLARE_EXTENSION_FUNCTION("automationInternal.enableCurrentTab", | 25 DECLARE_EXTENSION_FUNCTION("automationInternal.enableCurrentTab", |
26 AUTOMATIONINTERNAL_ENABLECURRENTTAB) | 26 AUTOMATIONINTERNAL_ENABLECURRENTTAB) |
27 protected: | 27 protected: |
28 virtual ~AutomationInternalEnableCurrentTabFunction() {} | 28 virtual ~AutomationInternalEnableCurrentTabFunction() {} |
29 | 29 |
30 virtual bool RunImpl() OVERRIDE; | 30 virtual bool RunAsync() OVERRIDE; |
31 }; | 31 }; |
32 | 32 |
33 class AutomationInternalPerformActionFunction | 33 class AutomationInternalPerformActionFunction |
34 : public ChromeAsyncExtensionFunction { | 34 : public ChromeAsyncExtensionFunction { |
35 DECLARE_EXTENSION_FUNCTION("automationInternal.performAction", | 35 DECLARE_EXTENSION_FUNCTION("automationInternal.performAction", |
36 AUTOMATIONINTERNAL_PERFORMACTION) | 36 AUTOMATIONINTERNAL_PERFORMACTION) |
37 protected: | 37 protected: |
38 virtual ~AutomationInternalPerformActionFunction() {} | 38 virtual ~AutomationInternalPerformActionFunction() {} |
39 | 39 |
40 virtual bool RunImpl() OVERRIDE; | 40 virtual bool RunAsync() OVERRIDE; |
41 }; | 41 }; |
42 | 42 |
43 } // namespace extensions | 43 } // namespace extensions |
44 | 44 |
45 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL
_API_H_ | 45 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL
_API_H_ |
OLD | NEW |