| OLD | NEW |
| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 10 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 class FullscreenControllerTest : public InProcessBrowserTest { | 39 class FullscreenControllerTest : public InProcessBrowserTest { |
| 40 protected: | 40 protected: |
| 41 FullscreenControllerTest() {} | 41 FullscreenControllerTest() {} |
| 42 | 42 |
| 43 void RequestToLockMouse(bool user_gesture, | 43 void RequestToLockMouse(bool user_gesture, |
| 44 bool last_unlocked_by_target); | 44 bool last_unlocked_by_target); |
| 45 void LostMouseLock(); | 45 void LostMouseLock(); |
| 46 bool SendEscapeToFullscreenController(); | 46 bool SendEscapeToFullscreenController(); |
| 47 bool IsFullscreenForBrowser(); | 47 bool IsFullscreenForBrowser(); |
| 48 bool IsWindowFullscreenForTabOrPending(); | 48 bool IsWindowFullscreenForTabOrPending(); |
| 49 bool IsMouseLockPermissionRequested(); | |
| 50 bool IsFullscreenPermissionRequested(); | |
| 51 ExclusiveAccessBubbleType GetExclusiveAccessBubbleType(); | 49 ExclusiveAccessBubbleType GetExclusiveAccessBubbleType(); |
| 52 bool IsFullscreenBubbleDisplayed(); | 50 bool IsFullscreenBubbleDisplayed(); |
| 53 bool IsFullscreenBubbleDisplayingButtons(); | |
| 54 void AcceptCurrentFullscreenOrMouseLockRequest(); | |
| 55 void DenyCurrentFullscreenOrMouseLockRequest(); | |
| 56 void GoBack(); | 51 void GoBack(); |
| 57 void Reload(); | 52 void Reload(); |
| 58 void SetPrivilegedFullscreen(bool is_privileged); | 53 void SetPrivilegedFullscreen(bool is_privileged); |
| 59 static const char kFullscreenMouseLockHTML[]; | 54 static const char kFullscreenMouseLockHTML[]; |
| 60 FullscreenController* GetFullscreenController(); | 55 FullscreenController* GetFullscreenController(); |
| 61 ExclusiveAccessManager* GetExclusiveAccessManager(); | 56 ExclusiveAccessManager* GetExclusiveAccessManager(); |
| 62 | 57 |
| 63 private: | 58 private: |
| 64 void ToggleTabFullscreen_Internal(bool enter_fullscreen, | 59 void ToggleTabFullscreen_Internal(bool enter_fullscreen, |
| 65 bool retry_until_success); | 60 bool retry_until_success); |
| 66 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest); | 61 DISALLOW_COPY_AND_ASSIGN(FullscreenControllerTest); |
| 67 }; | 62 }; |
| 68 | 63 |
| 69 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_ | 64 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_FULLSCREEN_CONTROLLER_TEST_H_ |
| OLD | NEW |