| 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 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2472 save_info, | 2472 save_info, |
| 2473 this); | 2473 this); |
| 2474 } | 2474 } |
| 2475 | 2475 |
| 2476 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2476 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 2477 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2477 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
| 2478 // Can be NULL during tests. | 2478 // Can be NULL during tests. |
| 2479 if (rwh_view) | 2479 if (rwh_view) |
| 2480 rwh_view->SetSize(GetView()->GetContainerSize()); | 2480 rwh_view->SetSize(GetView()->GetContainerSize()); |
| 2481 } | 2481 } |
| 2482 |
| 2483 const GURL& TabContents::GetOpenerOrigin() const { |
| 2484 return opener_origin_; |
| 2485 } |
| OLD | NEW |