| 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_FULLSCREEN_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // The window may still be transitioning, and window_->IsFullscreen() | 48 // The window may still be transitioning, and window_->IsFullscreen() |
| 49 // may still return false. | 49 // may still return false. |
| 50 bool IsFullscreenForTabOrPending() const; | 50 bool IsFullscreenForTabOrPending() const; |
| 51 bool IsFullscreenForTabOrPending(const content::WebContents* tab) const; | 51 bool IsFullscreenForTabOrPending(const content::WebContents* tab) const; |
| 52 | 52 |
| 53 // Returns true if the mouse has been locked or a lock request is pending | 53 // Returns true if the mouse has been locked or a lock request is pending |
| 54 // user confirmation. | 54 // user confirmation. |
| 55 bool IsMouseLockedOrPending() const; | 55 bool IsMouseLockedOrPending() const; |
| 56 | 56 |
| 57 // Requests. | 57 // Requests. |
| 58 void RequestToLockMouse(content::WebContents* tab); | 58 void RequestToLockMouse(content::WebContents* tab, bool user_gesture); |
| 59 void ToggleFullscreenModeForTab(content::WebContents* tab, | 59 void ToggleFullscreenModeForTab(content::WebContents* tab, |
| 60 bool enter_fullscreen); | 60 bool enter_fullscreen); |
| 61 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
| 62 void TogglePresentationMode(); | 62 void TogglePresentationMode(); |
| 63 #endif | 63 #endif |
| 64 void ToggleFullscreenMode(); | 64 void ToggleFullscreenMode(); |
| 65 // Extension API implementation uses this method to toggle fullscreen mode. | 65 // Extension API implementation uses this method to toggle fullscreen mode. |
| 66 // The extension's name is displayed in the full screen bubble UI to attribute | 66 // The extension's name is displayed in the full screen bubble UI to attribute |
| 67 // the cause of the full screen state change. | 67 // the cause of the full screen state change. |
| 68 void ToggleFullscreenModeWithExtension(const GURL& extension_url); | 68 void ToggleFullscreenModeWithExtension(const GURL& extension_url); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // True if tab fullscreen has been allowed, either by settings or by user | 125 // True if tab fullscreen has been allowed, either by settings or by user |
| 126 // clicking the allow button on the fullscreen infobar. | 126 // clicking the allow button on the fullscreen infobar. |
| 127 bool tab_fullscreen_accepted_; | 127 bool tab_fullscreen_accepted_; |
| 128 | 128 |
| 129 MouseLockState mouse_lock_state_; | 129 MouseLockState mouse_lock_state_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(FullscreenController); | 131 DISALLOW_COPY_AND_ASSIGN(FullscreenController); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ | 134 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ |
| OLD | NEW |