| OLD | NEW |
| 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.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 gfx::NativeView TabContents::GetContentNativeView() const { | 1055 gfx::NativeView TabContents::GetContentNativeView() const { |
| 1056 return view_->GetContentNativeView(); | 1056 return view_->GetContentNativeView(); |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 gfx::NativeView TabContents::GetNativeView() const { | 1059 gfx::NativeView TabContents::GetNativeView() const { |
| 1060 return view_->GetNativeView(); | 1060 return view_->GetNativeView(); |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 TabContentsView* TabContents::GetTabContentsView() { |
| 1064 return view_.get(); |
| 1065 } |
| 1066 |
| 1063 void TabContents::GetContainerBounds(gfx::Rect *out) const { | 1067 void TabContents::GetContainerBounds(gfx::Rect *out) const { |
| 1064 view_->GetContainerBounds(out); | 1068 view_->GetContainerBounds(out); |
| 1065 } | 1069 } |
| 1066 | 1070 |
| 1067 void TabContents::Focus() { | 1071 void TabContents::Focus() { |
| 1068 view_->Focus(); | 1072 view_->Focus(); |
| 1069 } | 1073 } |
| 1070 | 1074 |
| 1071 void TabContents::FocusThroughTabTraversal(bool reverse) { | 1075 void TabContents::FocusThroughTabTraversal(bool reverse) { |
| 1072 if (showing_interstitial_page()) { | 1076 if (showing_interstitial_page()) { |
| (...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3307 } | 3311 } |
| 3308 | 3312 |
| 3309 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { | 3313 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { |
| 3310 render_manager_.SwapInRenderViewHost(rvh); | 3314 render_manager_.SwapInRenderViewHost(rvh); |
| 3311 } | 3315 } |
| 3312 | 3316 |
| 3313 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 3317 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 3314 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 3318 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
| 3315 rwh_view->SetSize(view()->GetContainerSize()); | 3319 rwh_view->SetSize(view()->GetContainerSize()); |
| 3316 } | 3320 } |
| OLD | NEW |