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 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 if (delegate_) | 949 if (delegate_) |
950 delegate_->HandleMouseActivate(); | 950 delegate_->HandleMouseActivate(); |
951 } | 951 } |
952 | 952 |
953 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) { | 953 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) { |
954 if (delegate_) | 954 if (delegate_) |
955 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); | 955 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); |
956 } | 956 } |
957 | 957 |
958 bool TabContents::IsFullscreenForCurrentTab() const { | 958 bool TabContents::IsFullscreenForCurrentTab() const { |
959 return delegate_ ? delegate_->IsFullscreenForTab(this) : false; | 959 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; |
960 } | 960 } |
961 | 961 |
962 void TabContents::RequestToLockMouse() { | 962 void TabContents::RequestToLockMouse() { |
963 if (delegate_) { | 963 if (delegate_) { |
964 delegate_->RequestToLockMouse(this); | 964 delegate_->RequestToLockMouse(this); |
965 } else { | 965 } else { |
966 GotResponseToLockMouseRequest(false); | 966 GotResponseToLockMouseRequest(false); |
967 } | 967 } |
968 } | 968 } |
969 | 969 |
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2503 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { | 2503 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { |
2504 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); | 2504 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); |
2505 // Can be NULL during tests. | 2505 // Can be NULL during tests. |
2506 if (rwh_view) | 2506 if (rwh_view) |
2507 rwh_view->SetSize(GetView()->GetContainerSize()); | 2507 rwh_view->SetSize(GetView()->GetContainerSize()); |
2508 } | 2508 } |
2509 | 2509 |
2510 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { | 2510 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { |
2511 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); | 2511 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); |
2512 } | 2512 } |
OLD | NEW |