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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1912 } | 1912 } |
1913 | 1913 |
1914 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { | 1914 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { |
1915 render_manager_.SwapInRenderViewHost(rvh); | 1915 render_manager_.SwapInRenderViewHost(rvh); |
1916 } | 1916 } |
1917 | 1917 |
1918 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 1918 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
1919 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 1919 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
1920 rwh_view->SetSize(view()->GetContainerSize()); | 1920 rwh_view->SetSize(view()->GetContainerSize()); |
1921 } | 1921 } |
1922 | |
1923 void TabContents::UpdatePreferredSize(const gfx::Size& pref_size) { | |
1924 if (delegate_) | |
1925 delegate_->UpdatePreferredSize(pref_size); | |
brettw
2011/08/10 23:39:36
In other places, we've just made the views call th
jianli
2011/08/10 23:57:18
Removed.
| |
1926 } | |
OLD | NEW |