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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10257015: Added a new automation hook ExecuteJavascriptInOOBEWebUI() to execute javascript prior to login on… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renamed hook and updated doc strings. Created 8 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index fb06b4751f3040a1596fef039dfd3849c2025052..31ee6831f50b6bf627579dce81f43f21bdc1ca01 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -40,6 +40,10 @@ namespace base {
class DictionaryValue;
}
+namespace content {
+class RenderViewHost;
+}
+
namespace webkit {
struct WebPluginInfo;
}
@@ -1439,6 +1443,18 @@ class TestingAutomationProvider : public AutomationProvider,
void Login(base::DictionaryValue* args, IPC::Message* reply_message);
+ // Executes javascript in the specified frame in the OOBE WebUI on chromeos.
+ // Waits for a result from the |DOMAutomationController|. The javascript must
+ // send a string. Must be run before a user has logged in.
+ // Example:
+ // input: { "frame_xpath": "//frames[1]",
+ // "javascript":
+ // "window.domAutomationController.send(window.name)",
+ // }
+ // output: { "result": "My Window Name" }
+ void ExecuteJavascriptInOOBEWebUI(
+ base::DictionaryValue* args, IPC::Message* reply_message);
+
// Screen locker.
void LockScreen(base::DictionaryValue* args, IPC::Message* reply_message);
@@ -1574,6 +1590,11 @@ class TestingAutomationProvider : public AutomationProvider,
void OnRemoveProvider(); // Called via PostTask
+ // Execute Javascript in the context of a specific render view.
+ void ExecuteJavascriptInRenderViewFrame(
+ const string16& frame_xpath, const string16& script,
+ IPC::Message* reply_message, content::RenderViewHost* render_view_host);
+
#if defined(TOOLKIT_VIEWS)
// Keep track of whether a popup menu has been opened since the last time
// that StartTrackingPopupMenus has been called.
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698