| 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 { | |
| 13 struct AXEventNotificationDetails; | |
| 14 } // namespace content | |
| 15 | |
| 16 namespace extensions { | 12 namespace extensions { |
| 17 class AutomationActionAdapter; | 13 class AutomationActionAdapter; |
| 18 | 14 |
| 19 namespace api { | 15 namespace api { |
| 20 namespace automation_internal { | 16 namespace automation_internal { |
| 21 namespace PerformAction { | 17 namespace PerformAction { |
| 22 struct Params; | 18 struct Params; |
| 23 } // namespace PerformAction | 19 } // namespace PerformAction |
| 24 } // namespace automation_internal | 20 } // namespace automation_internal |
| 25 } // namespace api | 21 } // namespace api |
| 26 } // namespace extensions | 22 } // namespace extensions |
| 27 | 23 |
| 28 namespace ui { | |
| 29 struct AXNodeData; | |
| 30 } | |
| 31 | |
| 32 namespace extensions { | 24 namespace extensions { |
| 33 | 25 |
| 34 // Implementation of the chrome.automation API. | 26 // Implementation of the chrome.automation API. |
| 35 class AutomationInternalEnableTabFunction | 27 class AutomationInternalEnableTabFunction |
| 36 : public ChromeUIThreadExtensionFunction { | 28 : public ChromeUIThreadExtensionFunction { |
| 37 DECLARE_EXTENSION_FUNCTION("automationInternal.enableTab", | 29 DECLARE_EXTENSION_FUNCTION("automationInternal.enableTab", |
| 38 AUTOMATIONINTERNAL_ENABLETAB) | 30 AUTOMATIONINTERNAL_ENABLETAB) |
| 39 protected: | 31 protected: |
| 40 ~AutomationInternalEnableTabFunction() override {} | 32 ~AutomationInternalEnableTabFunction() override {} |
| 41 | 33 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void OnResponse(const std::string& error, int result_acc_obj_id); | 87 void OnResponse(const std::string& error, int result_acc_obj_id); |
| 96 | 88 |
| 97 // Used for assigning a unique ID to each request so that the response can be | 89 // Used for assigning a unique ID to each request so that the response can be |
| 98 // routed appropriately. | 90 // routed appropriately. |
| 99 static int query_request_id_counter_; | 91 static int query_request_id_counter_; |
| 100 }; | 92 }; |
| 101 | 93 |
| 102 } // namespace extensions | 94 } // namespace extensions |
| 103 | 95 |
| 104 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL
_API_H_ | 96 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL
_API_H_ |
| OLD | NEW |