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

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: Valgrind error fix, merge to 130358 Created 8 years, 8 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 <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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/tests/browser_uitest.cc ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698