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

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

Issue 3263007: Reland r57788 - Expose Extension Bindings to Component Applications (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: don't hide gallery url in omnibar Created 10 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698