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

Side by Side Diff: chrome/browser/ui/fullscreen/fullscreen_controller_test.cc

Issue 10917278: Remove mouse lock / pointer lock flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 "chrome/browser/ui/fullscreen/fullscreen_controller_test.h" 5 #include "chrome/browser/ui/fullscreen/fullscreen_controller_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_tabstrip.h" 10 #include "chrome/browser/ui/browser_tabstrip.h"
11 #include "chrome/browser/ui/browser_window.h" 11 #include "chrome/browser/ui/browser_window.h"
12 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" 12 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/test/test_navigation_observer.h" 15 #include "content/public/test/test_navigation_observer.h"
16 16
17 using content::WebContents; 17 using content::WebContents;
18 18
19 const char FullscreenControllerTest::kFullscreenMouseLockHTML[] = 19 const char FullscreenControllerTest::kFullscreenMouseLockHTML[] =
20 "files/fullscreen_mouselock/fullscreen_mouselock.html"; 20 "files/fullscreen_mouselock/fullscreen_mouselock.html";
21 21
22 void FullscreenControllerTest::SetUpCommandLine(CommandLine* command_line) {
23 command_line->AppendSwitch(switches::kEnablePointerLock);
24 }
25
26 void FullscreenControllerTest::RequestToLockMouse( 22 void FullscreenControllerTest::RequestToLockMouse(
27 bool user_gesture, 23 bool user_gesture,
28 bool last_unlocked_by_target) { 24 bool last_unlocked_by_target) {
29 WebContents* tab = chrome::GetActiveWebContents(browser()); 25 WebContents* tab = chrome::GetActiveWebContents(browser());
30 browser()->RequestToLockMouse(tab, user_gesture, 26 browser()->RequestToLockMouse(tab, user_gesture,
31 last_unlocked_by_target); 27 last_unlocked_by_target);
32 } 28 }
33 29
34 void FullscreenControllerTest::LostMouseLock() { 30 void FullscreenControllerTest::LostMouseLock() {
35 browser()->LostMouseLock(); 31 browser()->LostMouseLock();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 111
116 void FullscreenControllerTest::Reload() { 112 void FullscreenControllerTest::Reload() {
117 content::TestNavigationObserver observer( 113 content::TestNavigationObserver observer(
118 content::NotificationService::AllSources(), NULL, 1); 114 content::NotificationService::AllSources(), NULL, 1);
119 115
120 chrome::Reload(browser(), CURRENT_TAB); 116 chrome::Reload(browser(), CURRENT_TAB);
121 117
122 observer.Wait(); 118 observer.Wait();
123 } 119 }
124 120
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698