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

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

Issue 10702030: Move fullscreen_controller* to a subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge tot Created 8 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_TEST_H_
6 #define CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_TEST_H_
7
8 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
9 #include "chrome/common/chrome_notification_types.h"
10 #include "chrome/test/base/in_process_browser_test.h"
11 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/public/browser/notification_service.h"
13
14 // Observer for NOTIFICATION_FULLSCREEN_CHANGED notifications.
15 class FullscreenNotificationObserver
16 : public ui_test_utils::WindowedNotificationObserver {
17 public:
18 FullscreenNotificationObserver() : WindowedNotificationObserver(
19 chrome::NOTIFICATION_FULLSCREEN_CHANGED,
20 content::NotificationService::AllSources()) {}
21 protected:
22 DISALLOW_COPY_AND_ASSIGN(FullscreenNotificationObserver);
23 };
24
25 // Observer for NOTIFICATION_MOUSE_LOCK_CHANGED notifications.
26 class MouseLockNotificationObserver
27 : public ui_test_utils::WindowedNotificationObserver {
28 public:
29 MouseLockNotificationObserver() : WindowedNotificationObserver(
30 chrome::NOTIFICATION_MOUSE_LOCK_CHANGED,
31 content::NotificationService::AllSources()) {}
32 protected:
33 DISALLOW_COPY_AND_ASSIGN(MouseLockNotificationObserver);
34 };
35
36 // Test fixture with convenience functions for fullscreen and mouse lock.
37 class FullscreenControllerTest : public InProcessBrowserTest {
38 protected:
39 FullscreenControllerTest() {}
40
41 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
42 void ToggleTabFullscreen(bool enter_fullscreen);
43 void ToggleTabFullscreenNoRetries(bool enter_fullscreen);
44 void ToggleBrowserFullscreen(bool enter_fullscreen);
45 void RequestToLockMouse(bool user_gesture,
46 bool last_unlocked_by_target);
47 void LostMouseLock();
48 bool SendEscapeToFullscreenController();
49 bool IsFullscreenForBrowser();
50 bool IsFullscreenForTabOrPending();
51 bool IsMouseLockPermissionRequested();
52 bool IsFullscreenPermissionRequested();
53 FullscreenExitBubbleType GetFullscreenExitBubbleType();
54 bool IsFullscreenBubbleDisplayed();
55 bool IsFullscreenBubbleDisplayingButtons();
56 void AcceptCurrentFullscreenOrMouseLockRequest();
57 void DenyCurrentFullscreenOrMouseLockRequest();
58 void AddTabAtIndexAndWait(int index, const GURL& url,
59 content::PageTransition transition);
60 void GoBack();
61 void Reload();
62 static const char kFullscreenMouseLockHTML[];
63 private:
64 void ToggleTabFullscreen_Internal(bool enter_fullscreen,
65 bool retry_until_success);
66 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest);
67 };
68
69 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/fullscreen_controller_interactive_browsertest.cc ('k') | chrome/browser/ui/fullscreen_controller_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698