| 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 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1948 | 1948 |
| 1949 void TabContents::OnDialogShown() { | 1949 void TabContents::OnDialogShown() { |
| 1950 Activate(); | 1950 Activate(); |
| 1951 } | 1951 } |
| 1952 | 1952 |
| 1953 void TabContents::set_encoding(const std::string& encoding) { | 1953 void TabContents::set_encoding(const std::string& encoding) { |
| 1954 encoding_ = content::GetContentClient()->browser()-> | 1954 encoding_ = content::GetContentClient()->browser()-> |
| 1955 GetCanonicalEncodingNameByAliasName(encoding); | 1955 GetCanonicalEncodingNameByAliasName(encoding); |
| 1956 } | 1956 } |
| 1957 | 1957 |
| 1958 void TabContents::SwapInRenderViewHost(RenderViewHost* rvh) { | |
| 1959 render_manager_.SwapInRenderViewHost(rvh); | |
| 1960 } | |
| 1961 | |
| 1962 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 1958 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 1963 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); | 1959 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); |
| 1964 rwh_view->SetSize(view()->GetContainerSize()); | 1960 rwh_view->SetSize(view()->GetContainerSize()); |
| 1965 } | 1961 } |
| OLD | NEW |