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