Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 9702055: Automated tests for full screen & mouse lock M16 features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FileURL & BrowserTest compilation fixes Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 if (delegate_) 973 if (delegate_)
974 delegate_->HandleMouseActivate(); 974 delegate_->HandleMouseActivate();
975 } 975 }
976 976
977 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) { 977 void TabContents::ToggleFullscreenMode(bool enter_fullscreen) {
978 if (delegate_) 978 if (delegate_)
979 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); 979 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen);
980 } 980 }
981 981
982 bool TabContents::IsFullscreenForCurrentTab() const { 982 bool TabContents::IsFullscreenForCurrentTab() const {
983 return delegate_ ? delegate_->IsFullscreenForTab(this) : false; 983 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false;
984 } 984 }
985 985
986 void TabContents::RequestToLockMouse() { 986 void TabContents::RequestToLockMouse() {
987 if (delegate_) { 987 if (delegate_) {
988 delegate_->RequestToLockMouse(this); 988 delegate_->RequestToLockMouse(this);
989 } else { 989 } else {
990 GotResponseToLockMouseRequest(false); 990 GotResponseToLockMouseRequest(false);
991 } 991 }
992 } 992 }
993 993
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after
2531 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2531 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2532 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2532 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2533 // Can be NULL during tests. 2533 // Can be NULL during tests.
2534 if (rwh_view) 2534 if (rwh_view)
2535 rwh_view->SetSize(GetView()->GetContainerSize()); 2535 rwh_view->SetSize(GetView()->GetContainerSize());
2536 } 2536 }
2537 2537
2538 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() { 2538 RenderViewHostImpl* TabContents::GetRenderViewHostImpl() {
2539 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); 2539 return static_cast<RenderViewHostImpl*>(GetRenderViewHost());
2540 } 2540 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698