| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 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 const string16& frame_name) { |
| 33 TabContents* new_contents = delegate_view_helper_.CreateNewWindow( | 33 TabContents* new_contents = delegate_view_helper_.CreateNewWindow( |
| 34 route_id, | 34 route_id, |
| 35 tab_contents_->profile(), | 35 tab_contents_->profile(), |
| 36 tab_contents_->GetSiteInstance(), | 36 tab_contents_->GetSiteInstance(), |
| 37 DOMUIFactory::GetDOMUIType(tab_contents_->GetURL()), | 37 DOMUIFactory::GetDOMUIType(tab_contents_->profile(), |
| 38 tab_contents_->GetURL()), |
| 38 tab_contents_, | 39 tab_contents_, |
| 39 window_container_type, | 40 window_container_type, |
| 40 frame_name); | 41 frame_name); |
| 41 | 42 |
| 42 if (new_contents && tab_contents_->delegate()) | 43 if (new_contents && tab_contents_->delegate()) |
| 43 tab_contents_->delegate()->TabContentsCreated(new_contents); | 44 tab_contents_->delegate()->TabContentsCreated(new_contents); |
| 44 } | 45 } |
| 45 | 46 |
| 46 void TabContentsView::CreateNewWidget(int route_id, | 47 void TabContentsView::CreateNewWidget(int route_id, |
| 47 WebKit::WebPopupType popup_type) { | 48 WebKit::WebPopupType popup_type) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 126 } |
| 126 | 127 |
| 127 void TabContentsView::ShowCreatedFullscreenWidgetInternal( | 128 void TabContentsView::ShowCreatedFullscreenWidgetInternal( |
| 128 RenderWidgetHostView* widget_host_view) { | 129 RenderWidgetHostView* widget_host_view) { |
| 129 if (tab_contents_->delegate()) | 130 if (tab_contents_->delegate()) |
| 130 tab_contents_->delegate()->RenderWidgetShowing(); | 131 tab_contents_->delegate()->RenderWidgetShowing(); |
| 131 | 132 |
| 132 widget_host_view->InitAsFullscreen(tab_contents_->GetRenderWidgetHostView()); | 133 widget_host_view->InitAsFullscreen(tab_contents_->GetRenderWidgetHostView()); |
| 133 widget_host_view->GetRenderWidgetHost()->Init(); | 134 widget_host_view->GetRenderWidgetHost()->Init(); |
| 134 } | 135 } |
| OLD | NEW |