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

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

Issue 6721021: Move a bunch of renderer->browser messages to content. (Closed) Base URL: svn://chrome-svn/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 "chrome/common/render_messages_params.h"
8 #include "content/browser/renderer_host/render_process_host.h" 7 #include "content/browser/renderer_host/render_process_host.h"
9 #include "content/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
10 #include "content/browser/renderer_host/render_view_host_delegate.h" 9 #include "content/browser/renderer_host/render_view_host_delegate.h"
11 #include "content/browser/renderer_host/render_widget_host.h" 10 #include "content/browser/renderer_host/render_widget_host.h"
12 #include "content/browser/renderer_host/render_widget_host_view.h" 11 #include "content/browser/renderer_host/render_widget_host_view.h"
13 #include "content/browser/tab_contents/tab_contents.h" 12 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/browser/tab_contents/tab_contents_delegate.h" 13 #include "content/browser/tab_contents/tab_contents_delegate.h"
15 #include "content/common/notification_service.h" 14 #include "content/common/notification_service.h"
15 #include "content/common/view_messages.h"
16 16
17 TabContentsView::TabContentsView(TabContents* tab_contents) 17 TabContentsView::TabContentsView(TabContents* tab_contents)
18 : tab_contents_(tab_contents) { 18 : tab_contents_(tab_contents) {
19 } 19 }
20 20
21 TabContentsView::~TabContentsView() {} 21 TabContentsView::~TabContentsView() {}
22 22
23 void TabContentsView::RenderWidgetHostDestroyed(RenderWidgetHost* host) { 23 void TabContentsView::RenderWidgetHostDestroyed(RenderWidgetHost* host) {
24 if (host->view()) 24 if (host->view())
25 host->view()->WillDestroyRenderWidget(host); 25 host->view()->WillDestroyRenderWidget(host);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 void TabContentsView::ShowCreatedFullscreenWidgetInternal( 162 void TabContentsView::ShowCreatedFullscreenWidgetInternal(
163 RenderWidgetHostView* widget_host_view) { 163 RenderWidgetHostView* widget_host_view) {
164 if (tab_contents_->delegate()) 164 if (tab_contents_->delegate())
165 tab_contents_->delegate()->RenderWidgetShowing(); 165 tab_contents_->delegate()->RenderWidgetShowing();
166 166
167 widget_host_view->InitAsFullscreen(); 167 widget_host_view->InitAsFullscreen();
168 widget_host_view->GetRenderWidgetHost()->Init(); 168 widget_host_view->GetRenderWidgetHost()->Init();
169 } 169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698