| 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" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 } // namespace api | 25 } // namespace api |
| 26 } // namespace extensions | 26 } // namespace extensions |
| 27 | 27 |
| 28 namespace ui { | 28 namespace ui { |
| 29 struct AXNodeData; | 29 struct AXNodeData; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace extensions { | 32 namespace extensions { |
| 33 | 33 |
| 34 // Implementation of the chrome.automation API. | 34 // Implementation of the chrome.automation API. |
| 35 class AutomationInternalEnableCurrentTabFunction | 35 class AutomationInternalEnableTabFunction |
| 36 : public ChromeUIThreadExtensionFunction { | 36 : public ChromeUIThreadExtensionFunction { |
| 37 DECLARE_EXTENSION_FUNCTION("automationInternal.enableCurrentTab", | 37 DECLARE_EXTENSION_FUNCTION("automationInternal.enableTab", |
| 38 AUTOMATIONINTERNAL_ENABLECURRENTTAB) | 38 AUTOMATIONINTERNAL_ENABLETAB) |
| 39 protected: | 39 protected: |
| 40 virtual ~AutomationInternalEnableCurrentTabFunction() {} | 40 virtual ~AutomationInternalEnableTabFunction() {} |
| 41 | 41 |
| 42 virtual ExtensionFunction::ResponseAction Run() OVERRIDE; | 42 virtual ExtensionFunction::ResponseAction Run() OVERRIDE; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class AutomationInternalPerformActionFunction | 45 class AutomationInternalPerformActionFunction |
| 46 : public UIThreadExtensionFunction { | 46 : public UIThreadExtensionFunction { |
| 47 DECLARE_EXTENSION_FUNCTION("automationInternal.performAction", | 47 DECLARE_EXTENSION_FUNCTION("automationInternal.performAction", |
| 48 AUTOMATIONINTERNAL_PERFORMACTION) | 48 AUTOMATIONINTERNAL_PERFORMACTION) |
| 49 protected: | 49 protected: |
| 50 virtual ~AutomationInternalPerformActionFunction() {} | 50 virtual ~AutomationInternalPerformActionFunction() {} |
| (...skipping 13 matching lines...) Expand all Loading... |
| 64 AUTOMATIONINTERNAL_ENABLEDESKTOP) | 64 AUTOMATIONINTERNAL_ENABLEDESKTOP) |
| 65 protected: | 65 protected: |
| 66 virtual ~AutomationInternalEnableDesktopFunction() {} | 66 virtual ~AutomationInternalEnableDesktopFunction() {} |
| 67 | 67 |
| 68 virtual ResponseAction Run() OVERRIDE; | 68 virtual ResponseAction Run() OVERRIDE; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace extensions | 71 } // namespace extensions |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL
_API_H_ | 73 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL
_API_H_ |
| OLD | NEW |