| 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 <utility> | 7 #include <utility> |
| 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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 if (delegate_) | 976 if (delegate_) |
| 977 delegate_->HandleMouseActivate(); | 977 delegate_->HandleMouseActivate(); |
| 978 } | 978 } |
| 979 | 979 |
| 980 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) { | 980 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) { |
| 981 if (delegate_) | 981 if (delegate_) |
| 982 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); | 982 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); |
| 983 } | 983 } |
| 984 | 984 |
| 985 bool TabContents::IsFullscreenForCurrentTab() const { | 985 bool TabContents::IsFullscreenForCurrentTab() const { |
| 986 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; | 986 return delegate_ ? delegate_->IsFullscreenForTab(this) : false; |
| 987 } | 987 } |
| 988 | 988 |
| 989 void TabContents::RequestToLockMouse() { | 989 void TabContents::RequestToLockMouse() { |
| 990 if (delegate_) { | 990 if (delegate_) { |
| 991 delegate_->RequestToLockMouse(this); | 991 delegate_->RequestToLockMouse(this); |
| 992 } else { | 992 } else { |
| 993 GotResponseToLockMouseRequest(false); | 993 GotResponseToLockMouseRequest(false); |
| 994 } | 994 } |
| 995 } | 995 } |
| 996 | 996 |
| (...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2591 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2591 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
| 2592 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2592 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
| 2593 // Can be NULL during tests. | 2593 // Can be NULL during tests. |
| 2594 if (rwh_view) | 2594 if (rwh_view) |
| 2595 rwh_view->SetSize(GetView()->GetContainerSize()); | 2595 rwh_view->SetSize(GetView()->GetContainerSize()); |
| 2596 } | 2596 } |
| 2597 | 2597 |
| 2598 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { | 2598 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { |
| 2599 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2599 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
| 2600 } | 2600 } |
| OLD | NEW |