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

Side by Side Diff: chrome/browser/tab_contents/tab_contents_view.cc

Issue 2775003: Added plumbing to transport the frame name between RenderViewHost and the Webkit layer. (Closed)
Patch Set: Final version for the record Created 10 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/tab_contents/tab_contents_view.h" 5 #include "chrome/browser/tab_contents/tab_contents_view.h"
6 6
7 #include "chrome/browser/renderer_host/render_process_host.h" 7 #include "chrome/browser/renderer_host/render_process_host.h"
8 #include "chrome/browser/renderer_host/render_view_host.h" 8 #include "chrome/browser/renderer_host/render_view_host.h"
9 #include "chrome/browser/renderer_host/render_widget_host.h" 9 #include "chrome/browser/renderer_host/render_widget_host.h"
10 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 10 #include "chrome/browser/renderer_host/render_view_host_delegate.h"
(...skipping 10 matching lines...) Expand all
21 host->view()->WillDestroyRenderWidget(host); 21 host->view()->WillDestroyRenderWidget(host);
22 delegate_view_helper_.RenderWidgetHostDestroyed(host); 22 delegate_view_helper_.RenderWidgetHostDestroyed(host);
23 } 23 }
24 24
25 void TabContentsView::RenderViewCreated(RenderViewHost* host) { 25 void TabContentsView::RenderViewCreated(RenderViewHost* host) {
26 // Default implementation does nothing. Platforms may override. 26 // Default implementation does nothing. Platforms may override.
27 } 27 }
28 28
29 void TabContentsView::CreateNewWindow( 29 void TabContentsView::CreateNewWindow(
30 int route_id, 30 int route_id,
31 WindowContainerType window_container_type) { 31 WindowContainerType window_container_type,
32 const string16& frame_name) {
32 TabContents* new_contents = delegate_view_helper_.CreateNewWindow( 33 TabContents* new_contents = delegate_view_helper_.CreateNewWindow(
33 route_id, tab_contents_->profile(), tab_contents_->GetSiteInstance(), 34 route_id,
34 DOMUIFactory::GetDOMUIType(tab_contents_->GetURL()), tab_contents_, 35 tab_contents_->profile(),
35 window_container_type); 36 tab_contents_->GetSiteInstance(),
37 DOMUIFactory::GetDOMUIType(tab_contents_->GetURL()),
38 tab_contents_,
39 window_container_type,
40 frame_name);
36 41
37 if (new_contents && tab_contents_->delegate()) 42 if (new_contents && tab_contents_->delegate())
38 tab_contents_->delegate()->TabContentsCreated(new_contents); 43 tab_contents_->delegate()->TabContentsCreated(new_contents);
39 } 44 }
40 45
41 void TabContentsView::CreateNewWidget(int route_id, 46 void TabContentsView::CreateNewWidget(int route_id,
42 WebKit::WebPopupType popup_type) { 47 WebKit::WebPopupType popup_type) {
43 CreateNewWidgetInternal(route_id, popup_type); 48 CreateNewWidgetInternal(route_id, popup_type);
44 } 49 }
45 50
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 91
87 void TabContentsView::ShowCreatedWidgetInternal( 92 void TabContentsView::ShowCreatedWidgetInternal(
88 RenderWidgetHostView* widget_host_view, const gfx::Rect& initial_pos) { 93 RenderWidgetHostView* widget_host_view, const gfx::Rect& initial_pos) {
89 if (tab_contents_->delegate()) 94 if (tab_contents_->delegate())
90 tab_contents_->delegate()->RenderWidgetShowing(); 95 tab_contents_->delegate()->RenderWidgetShowing();
91 96
92 widget_host_view->InitAsPopup(tab_contents_->GetRenderWidgetHostView(), 97 widget_host_view->InitAsPopup(tab_contents_->GetRenderWidgetHostView(),
93 initial_pos); 98 initial_pos);
94 widget_host_view->GetRenderWidgetHost()->Init(); 99 widget_host_view->GetRenderWidgetHost()->Init();
95 } 100 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view.h ('k') | chrome/browser/tab_contents/test_tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698