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..cd9ec4498a1df82f62df5fdb5f09cec0093e2c26 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; |
} |
@@ -985,6 +989,18 @@ class TestingAutomationProvider : public AutomationProvider, |
void ExecuteJavascriptJSON( |
base::DictionaryValue* args, IPC::Message* reply_message); |
+ // Executes javascript in the specified frame in the login page. Uses the |
Nirnimesh
2012/04/27 22:46:38
login page -> login page on chromeos
Nirnimesh
2012/04/27 22:46:38
Move to OS_CHROMEOS section below
craigdh
2012/04/27 23:29:50
Done.
craigdh
2012/04/27 23:29:50
Done.
|
+ // JSON interface. 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 ExecuteJavascriptInLogin( |
+ base::DictionaryValue* args, IPC::Message* reply_message); |
+ |
// Creates a DomEventObserver associated with the AutomationEventQueue. |
// Example: |
// input: { "event_name": "login complete", |
@@ -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. |