summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_widget_helper.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 15:29:03 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 15:29:03 +0000
commit15787f8f3946a513d39a1f0d9a12925f447fa18d (patch)
tree9f68bab4d2682376d7d11ec42024f67823470427 /chrome/browser/render_widget_helper.cc
parent0d05594d912d67dcbcd5b899a1036819603922b1 (diff)
downloadchromium_src-15787f8f3946a513d39a1f0d9a12925f447fa18d.zip
chromium_src-15787f8f3946a513d39a1f0d9a12925f447fa18d.tar.gz
chromium_src-15787f8f3946a513d39a1f0d9a12925f447fa18d.tar.bz2
Separate out most view creation from WebContents. This adds a new sub-delegate to RenderViewHostDelegate which is implemented by WebContentsView. I did a lot of plumbing and moving around as a result.
Review URL: http://codereview.chromium.org/6608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_widget_helper.cc')
-rw-r--r--chrome/browser/render_widget_helper.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/render_widget_helper.cc b/chrome/browser/render_widget_helper.cc
index d2554e6..3f91834 100644
--- a/chrome/browser/render_widget_helper.cc
+++ b/chrome/browser/render_widget_helper.cc
@@ -187,11 +187,11 @@ void RenderWidgetHelper::OnCrossSiteClosePageACK(
dispatcher->OnClosePageACK(new_render_process_host_id, new_request_id);
}
-void RenderWidgetHelper::CreateView(int opener_id,
- bool user_gesture,
- int* route_id,
- HANDLE* modal_dialog_event,
- HANDLE render_process) {
+void RenderWidgetHelper::CreateNewWindow(int opener_id,
+ bool user_gesture,
+ int* route_id,
+ HANDLE* modal_dialog_event,
+ HANDLE render_process) {
if (!user_gesture && block_popups_) {
*route_id = MSG_ROUTING_NONE;
*modal_dialog_event = NULL;
@@ -210,12 +210,12 @@ void RenderWidgetHelper::CreateView(int opener_id,
DCHECK(result) << "Couldn't duplicate modal dialog event for the renderer.";
// The easiest way to reach RenderViewHost is just to send a routed message.
- ViewHostMsg_CreateViewWithRoute msg(opener_id, *route_id, event);
+ ViewHostMsg_CreateWindowWithRoute msg(opener_id, *route_id, event);
ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(
this, &RenderWidgetHelper::OnSimulateReceivedMessage, msg));
}
-void RenderWidgetHelper::CreateWidget(int opener_id, int* route_id) {
+void RenderWidgetHelper::CreateNewWidget(int opener_id, int* route_id) {
*route_id = GetNextRoutingID();
ViewHostMsg_CreateWidgetWithRoute msg(opener_id, *route_id);
ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(