| 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.
|
|
|