Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: chrome/browser/extensions/api/automation_internal/automation_internal_api.h

Issue 667713006: Implement automatic load of composed/embedded automation trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 ExtensionFunction::ResponseAction Run() override; 52 ExtensionFunction::ResponseAction Run() override;
53 53
54 private: 54 private:
55 // Helper function to route an action to an action adapter. 55 // Helper function to route an action to an action adapter.
56 ExtensionFunction::ResponseAction RouteActionToAdapter( 56 ExtensionFunction::ResponseAction RouteActionToAdapter(
57 api::automation_internal::PerformAction::Params* params, 57 api::automation_internal::PerformAction::Params* params,
58 AutomationActionAdapter* adapter); 58 AutomationActionAdapter* adapter);
59 }; 59 };
60 60
61 class AutomationInternalEnableFrameFunction : public UIThreadExtensionFunction {
62 DECLARE_EXTENSION_FUNCTION("automationInternal.enableFrame",
63 AUTOMATIONINTERNAL_PERFORMACTION)
64 protected:
65 ~AutomationInternalEnableFrameFunction() override {}
66
67 ExtensionFunction::ResponseAction Run() override;
68 };
69
61 class AutomationInternalEnableDesktopFunction 70 class AutomationInternalEnableDesktopFunction
62 : public UIThreadExtensionFunction { 71 : public UIThreadExtensionFunction {
63 DECLARE_EXTENSION_FUNCTION("automationInternal.enableDesktop", 72 DECLARE_EXTENSION_FUNCTION("automationInternal.enableDesktop",
64 AUTOMATIONINTERNAL_ENABLEDESKTOP) 73 AUTOMATIONINTERNAL_ENABLEDESKTOP)
65 protected: 74 protected:
66 ~AutomationInternalEnableDesktopFunction() override {} 75 ~AutomationInternalEnableDesktopFunction() override {}
67 76
68 ResponseAction Run() override; 77 ResponseAction Run() override;
69 }; 78 };
70 79
71 } // namespace extensions 80 } // namespace extensions
72 81
73 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL _API_H_ 82 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_INTERNAL _API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698