| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |