| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 using content::DevToolsManagerImpl; | 116 using content::DevToolsManagerImpl; |
| 117 using content::DownloadItem; | 117 using content::DownloadItem; |
| 118 using content::DownloadManager; | 118 using content::DownloadManager; |
| 119 using content::GlobalRequestID; | 119 using content::GlobalRequestID; |
| 120 using content::HostZoomMap; | 120 using content::HostZoomMap; |
| 121 using content::InterstitialPage; | 121 using content::InterstitialPage; |
| 122 using content::NavigationController; | 122 using content::NavigationController; |
| 123 using content::NavigationEntry; | 123 using content::NavigationEntry; |
| 124 using content::NavigationEntryImpl; | 124 using content::NavigationEntryImpl; |
| 125 using content::OpenURLParams; | 125 using content::OpenURLParams; |
| 126 using content::RenderViewHost; |
| 127 using content::RenderViewHostImpl; |
| 126 using content::RenderViewHostDelegate; | 128 using content::RenderViewHostDelegate; |
| 129 using content::RenderWidgetHost; |
| 127 using content::RenderWidgetHostView; | 130 using content::RenderWidgetHostView; |
| 128 using content::RenderWidgetHostViewPort; | 131 using content::RenderWidgetHostViewPort; |
| 129 using content::SessionStorageNamespace; | 132 using content::SessionStorageNamespace; |
| 130 using content::SiteInstance; | 133 using content::SiteInstance; |
| 131 using content::SSLStatus; | 134 using content::SSLStatus; |
| 132 using content::UserMetricsAction; | 135 using content::UserMetricsAction; |
| 133 using content::WebContents; | 136 using content::WebContents; |
| 134 using content::WebContentsObserver; | 137 using content::WebContentsObserver; |
| 135 using content::WebUI; | 138 using content::WebUI; |
| 136 using content::WebUIController; | 139 using content::WebUIController; |
| (...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2507 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2510 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 2508 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2511 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
| 2509 // Can be NULL during tests. | 2512 // Can be NULL during tests. |
| 2510 if (rwh_view) | 2513 if (rwh_view) |
| 2511 rwh_view->SetSize(GetView()->GetContainerSize()); | 2514 rwh_view->SetSize(GetView()->GetContainerSize()); |
| 2512 } | 2515 } |
| 2513 | 2516 |
| 2514 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { | 2517 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { |
| 2515 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2518 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
| 2516 } | 2519 } |
| OLD | NEW |