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

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

Issue 8432011: Move RendererPreferences to content/public/common and also put in the content namespace. (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
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/common/renderer_preferences.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) 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 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1393 1393
1394 RenderViewHostDelegate::View* TabContents::GetViewDelegate() { 1394 RenderViewHostDelegate::View* TabContents::GetViewDelegate() {
1395 return view_.get(); 1395 return view_.get();
1396 } 1396 }
1397 1397
1398 RenderViewHostDelegate::RendererManagement* 1398 RenderViewHostDelegate::RendererManagement*
1399 TabContents::GetRendererManagementDelegate() { 1399 TabContents::GetRendererManagementDelegate() {
1400 return &render_manager_; 1400 return &render_manager_;
1401 } 1401 }
1402 1402
1403 RendererPreferences TabContents::GetRendererPrefs( 1403 content::RendererPreferences TabContents::GetRendererPrefs(
1404 content::BrowserContext* browser_context) const { 1404 content::BrowserContext* browser_context) const {
1405 return renderer_preferences_; 1405 return renderer_preferences_;
1406 } 1406 }
1407 1407
1408 TabContents* TabContents::GetAsTabContents() { 1408 TabContents* TabContents::GetAsTabContents() {
1409 return this; 1409 return this;
1410 } 1410 }
1411 1411
1412 content::ViewType TabContents::GetRenderViewType() const { 1412 content::ViewType TabContents::GetRenderViewType() const {
1413 return content::VIEW_TYPE_TAB_CONTENTS; 1413 return content::VIEW_TYPE_TAB_CONTENTS;
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 1999
2000 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2000 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2001 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 2001 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
2002 rwh_view->SetSize(view()->GetContainerSize()); 2002 rwh_view->SetSize(view()->GetContainerSize());
2003 } 2003 }
2004 2004
2005 bool TabContents::GotResponseToLockMouseRequest(bool allowed) { 2005 bool TabContents::GotResponseToLockMouseRequest(bool allowed) {
2006 return render_view_host() ? 2006 return render_view_host() ?
2007 render_view_host()->GotResponseToLockMouseRequest(allowed) : false; 2007 render_view_host()->GotResponseToLockMouseRequest(allowed) : false;
2008 } 2008 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.h ('k') | content/common/renderer_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698