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

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

Issue 836933005: Refactor fullscreen_controller. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase change Created 5 years, 11 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
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_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_ 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_
6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_ 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_
7 7
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h"
10 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h"
10 #include "chrome/test/base/in_process_browser_test.h" 11 #include "chrome/test/base/in_process_browser_test.h"
11 #include "content/public/browser/notification_service.h" 12 #include "content/public/browser/notification_service.h"
12 #include "content/public/test/test_utils.h" 13 #include "content/public/test/test_utils.h"
13 14
14 // Observer for NOTIFICATION_FULLSCREEN_CHANGED notifications. 15 // Observer for NOTIFICATION_FULLSCREEN_CHANGED notifications.
15 class FullscreenNotificationObserver 16 class FullscreenNotificationObserver
16 : public content::WindowedNotificationObserver { 17 : public content::WindowedNotificationObserver {
17 public: 18 public:
18 FullscreenNotificationObserver() : WindowedNotificationObserver( 19 FullscreenNotificationObserver() : WindowedNotificationObserver(
19 chrome::NOTIFICATION_FULLSCREEN_CHANGED, 20 chrome::NOTIFICATION_FULLSCREEN_CHANGED,
(...skipping 28 matching lines...) Expand all
48 bool IsFullscreenPermissionRequested(); 49 bool IsFullscreenPermissionRequested();
49 ExclusiveAccessBubbleType GetExclusiveAccessBubbleType(); 50 ExclusiveAccessBubbleType GetExclusiveAccessBubbleType();
50 bool IsFullscreenBubbleDisplayed(); 51 bool IsFullscreenBubbleDisplayed();
51 bool IsFullscreenBubbleDisplayingButtons(); 52 bool IsFullscreenBubbleDisplayingButtons();
52 void AcceptCurrentFullscreenOrMouseLockRequest(); 53 void AcceptCurrentFullscreenOrMouseLockRequest();
53 void DenyCurrentFullscreenOrMouseLockRequest(); 54 void DenyCurrentFullscreenOrMouseLockRequest();
54 void GoBack(); 55 void GoBack();
55 void Reload(); 56 void Reload();
56 void SetPrivilegedFullscreen(bool is_privileged); 57 void SetPrivilegedFullscreen(bool is_privileged);
57 static const char kFullscreenMouseLockHTML[]; 58 static const char kFullscreenMouseLockHTML[];
59 FullscreenController* GetFullscreenController();
60 ExclusiveAccessManager* GetExclusiveAccessManager();
61
58 private: 62 private:
59 void ToggleTabFullscreen_Internal(bool enter_fullscreen, 63 void ToggleTabFullscreen_Internal(bool enter_fullscreen,
60 bool retry_until_success); 64 bool retry_until_success);
61 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest); 65 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest);
62 }; 66 };
63 67
64 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_ 68 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698