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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 4088: Move a bunch of stuff out of WebContents. I removed a bunch of render view ho... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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/browser.cc » ('j') | chrome/browser/web_contents.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider.cc
===================================================================
--- chrome/browser/automation/automation_provider.cc (revision 2568)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -1591,8 +1591,10 @@
L"javascript:void(window.domAutomationController.setAutomationId(%d));",
message.routing_id());
- web_contents->ExecuteJavascriptInWebFrame(frame_xpath, url);
- web_contents->ExecuteJavascriptInWebFrame(frame_xpath, script);
+ web_contents->render_view_host()->ExecuteJavascriptInWebFrame(
+ frame_xpath, url);
+ web_contents->render_view_host()->ExecuteJavascriptInWebFrame(
+ frame_xpath, script);
succeeded = true;
}
@@ -1768,7 +1770,7 @@
const IPC::Message& message, int handle, int x, int y) {
WebContents* web_contents = GetWebContentsForHandle(handle, NULL);
if (web_contents) {
- web_contents->InspectElementAt(x, y);
+ web_contents->render_view_host()->InspectElementAt(x, y);
inspect_element_routing_id_ = message.routing_id();
} else {
Send(new AutomationMsg_InspectElementResponse(message.routing_id(), -1));
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | chrome/browser/web_contents.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698