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

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

Issue 6731060: Move WebUIFactory to chrome/, try 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/tab_contents/tab_contents_view.h" 5 #include "content/browser/tab_contents/tab_contents_view.h"
6 6
7 #include "content/browser/renderer_host/render_process_host.h" 7 #include "content/browser/renderer_host/render_process_host.h"
8 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
9 #include "content/browser/renderer_host/render_view_host_delegate.h" 9 #include "content/browser/renderer_host/render_view_host_delegate.h"
10 #include "content/browser/renderer_host/render_widget_host.h" 10 #include "content/browser/renderer_host/render_widget_host.h"
(...skipping 19 matching lines...) Expand all
30 // Default implementation does nothing. Platforms may override. 30 // Default implementation does nothing. Platforms may override.
31 } 31 }
32 32
33 void TabContentsView::CreateNewWindow( 33 void TabContentsView::CreateNewWindow(
34 int route_id, 34 int route_id,
35 const ViewHostMsg_CreateWindow_Params& params) { 35 const ViewHostMsg_CreateWindow_Params& params) {
36 TabContents* new_contents = delegate_view_helper_.CreateNewWindow( 36 TabContents* new_contents = delegate_view_helper_.CreateNewWindow(
37 route_id, 37 route_id,
38 tab_contents_->profile(), 38 tab_contents_->profile(),
39 tab_contents_->GetSiteInstance(), 39 tab_contents_->GetSiteInstance(),
40 WebUIFactory::GetWebUIType(tab_contents_->profile(), 40 tab_contents_->GetWebUITypeForCurrentState(),
41 tab_contents_->GetURL()),
42 tab_contents_, 41 tab_contents_,
43 params.window_container_type, 42 params.window_container_type,
44 params.frame_name); 43 params.frame_name);
45 44
46 if (new_contents) { 45 if (new_contents) {
47 NotificationService::current()->Notify( 46 NotificationService::current()->Notify(
48 NotificationType::CREATING_NEW_WINDOW, 47 NotificationType::CREATING_NEW_WINDOW,
49 Source<TabContents>(tab_contents_), 48 Source<TabContents>(tab_contents_),
50 Details<const ViewHostMsg_CreateWindow_Params>(&params)); 49 Details<const ViewHostMsg_CreateWindow_Params>(&params));
51 50
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 159 }
161 160
162 void TabContentsView::ShowCreatedFullscreenWidgetInternal( 161 void TabContentsView::ShowCreatedFullscreenWidgetInternal(
163 RenderWidgetHostView* widget_host_view) { 162 RenderWidgetHostView* widget_host_view) {
164 if (tab_contents_->delegate()) 163 if (tab_contents_->delegate())
165 tab_contents_->delegate()->RenderWidgetShowing(); 164 tab_contents_->delegate()->RenderWidgetShowing();
166 165
167 widget_host_view->InitAsFullscreen(); 166 widget_host_view->InitAsFullscreen();
168 widget_host_view->GetRenderWidgetHost()->Init(); 167 widget_host_view->GetRenderWidgetHost()->Init();
169 } 168 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/webui/empty_web_ui_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698