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

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

Issue 8622005: Get rid of view_messages.h include from chrome since TabContentsDelegate used a struct from it (V... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 if (!message_is_ok) { 315 if (!message_is_ok) {
316 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVD")); 316 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_RVD"));
317 GetRenderProcessHost()->ReceivedBadMessage(); 317 GetRenderProcessHost()->ReceivedBadMessage();
318 } 318 }
319 319
320 return handled; 320 return handled;
321 } 321 }
322 322
323 void TabContents::RunFileChooser( 323 void TabContents::RunFileChooser(
324 RenderViewHost* render_view_host, 324 RenderViewHost* render_view_host,
325 const ViewHostMsg_RunFileChooser_Params& params) { 325 const content::FileChooserParams& params) {
326 delegate()->RunFileChooser(this, params); 326 delegate()->RunFileChooser(this, params);
327 } 327 }
328 328
329 content::RenderProcessHost* TabContents::GetRenderProcessHost() const { 329 content::RenderProcessHost* TabContents::GetRenderProcessHost() const {
330 if (render_manager_.current_host()) 330 if (render_manager_.current_host())
331 return render_manager_.current_host()->process(); 331 return render_manager_.current_host()->process();
332 else 332 else
333 return NULL; 333 return NULL;
334 } 334 }
335 335
(...skipping 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 2030
2031 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2031 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2032 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 2032 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2033 rwh_view->SetSize(view()->GetContainerSize()); 2033 rwh_view->SetSize(view()->GetContainerSize());
2034 } 2034 }
2035 2035
2036 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { 2036 bool TabContents::GotResponseToLockMouseRequest(bool allowed) {
2037 return render_view_host() ? 2037 return render_view_host() ?
2038 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; 2038 render_view_host()->GotResponseToLockMouseRequest(allowed) : false;
2039 } 2039 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698