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

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

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 #ifndef CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_CONTROLLER_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_CONTROLLER_TEST_H_
6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_CONTROLLER_TEST_H_ 6 #define CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_CONTROLLER_TEST_H_
7 7
8 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 8 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
9 #include "chrome/common/chrome_notification_types.h" 9 #include "chrome/common/chrome_notification_types.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 20 matching lines...) Expand all
31 content::NotificationService::AllSources()) {} 31 content::NotificationService::AllSources()) {}
32 protected: 32 protected:
33 DISALLOW_COPY_AND_ASSIGN(MouseLockNotificationObserver); 33 DISALLOW_COPY_AND_ASSIGN(MouseLockNotificationObserver);
34 }; 34 };
35 35
36 // Test fixture with convenience functions for fullscreen and mouse lock. 36 // Test fixture with convenience functions for fullscreen and mouse lock.
37 class FullscreenControllerTest : public InProcessBrowserTest { 37 class FullscreenControllerTest : public InProcessBrowserTest {
38 protected: 38 protected:
39 FullscreenControllerTest() {} 39 FullscreenControllerTest() {}
40 40
41 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
42 void RequestToLockMouse(bool user_gesture, 41 void RequestToLockMouse(bool user_gesture,
43 bool last_unlocked_by_target); 42 bool last_unlocked_by_target);
44 void LostMouseLock(); 43 void LostMouseLock();
45 bool SendEscapeToFullscreenController(); 44 bool SendEscapeToFullscreenController();
46 bool IsFullscreenForBrowser(); 45 bool IsFullscreenForBrowser();
47 bool IsFullscreenForTabOrPending(); 46 bool IsFullscreenForTabOrPending();
48 bool IsMouseLockPermissionRequested(); 47 bool IsMouseLockPermissionRequested();
49 bool IsFullscreenPermissionRequested(); 48 bool IsFullscreenPermissionRequested();
50 FullscreenExitBubbleType GetFullscreenExitBubbleType(); 49 FullscreenExitBubbleType GetFullscreenExitBubbleType();
51 bool IsFullscreenBubbleDisplayed(); 50 bool IsFullscreenBubbleDisplayed();
52 bool IsFullscreenBubbleDisplayingButtons(); 51 bool IsFullscreenBubbleDisplayingButtons();
53 void AcceptCurrentFullscreenOrMouseLockRequest(); 52 void AcceptCurrentFullscreenOrMouseLockRequest();
54 void DenyCurrentFullscreenOrMouseLockRequest(); 53 void DenyCurrentFullscreenOrMouseLockRequest();
55 void AddTabAtIndexAndWait(int index, const GURL& url, 54 void AddTabAtIndexAndWait(int index, const GURL& url,
56 content::PageTransition transition); 55 content::PageTransition transition);
57 void GoBack(); 56 void GoBack();
58 void Reload(); 57 void Reload();
59 static const char kFullscreenMouseLockHTML[]; 58 static const char kFullscreenMouseLockHTML[];
60 private: 59 private:
61 void ToggleTabFullscreen_Internal(bool enter_fullscreen, 60 void ToggleTabFullscreen_Internal(bool enter_fullscreen,
62 bool retry_until_success); 61 bool retry_until_success);
63 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest); 62 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest);
64 }; 63 };
65 64
66 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_CONTROLLER_TEST_H_ 65 #endif // CHROME_BROWSER_UI_FULLSCREEN_FULLSCREEN_CONTROLLER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698