| 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" |
| 11 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" | 11 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" |
| 12 #include "chrome/common/content_settings.h" | 12 #include "chrome/common/content_settings.h" |
| 13 | 13 |
| 14 class Browser; | 14 class Browser; |
| 15 class BrowserWindow; | 15 class BrowserWindow; |
| 16 class Extension; | |
| 17 class GURL; | 16 class GURL; |
| 18 class Profile; | 17 class Profile; |
| 19 class TabContents; | 18 class TabContents; |
| 20 class TabContentsWrapper; | 19 class TabContentsWrapper; |
| 21 | 20 |
| 22 namespace content { | 21 namespace content { |
| 23 class WebContents; | 22 class WebContents; |
| 24 } | 23 } |
| 25 | 24 |
| 26 // There are two different kinds of fullscreen mode - "tab fullscreen" and | 25 // There are two different kinds of fullscreen mode - "tab fullscreen" and |
| (...skipping 23 matching lines...) Expand all Loading... |
| 50 void RequestToLockMouse(content::WebContents* tab); | 49 void RequestToLockMouse(content::WebContents* tab); |
| 51 void ToggleFullscreenModeForTab(content::WebContents* tab, | 50 void ToggleFullscreenModeForTab(content::WebContents* tab, |
| 52 bool enter_fullscreen); | 51 bool enter_fullscreen); |
| 53 #if defined(OS_MACOSX) | 52 #if defined(OS_MACOSX) |
| 54 void TogglePresentationMode(); | 53 void TogglePresentationMode(); |
| 55 #endif | 54 #endif |
| 56 void ToggleFullscreenMode(); | 55 void ToggleFullscreenMode(); |
| 57 // Extension API implementation uses this method to toggle fullscreen mode. | 56 // Extension API implementation uses this method to toggle fullscreen mode. |
| 58 // The extension's name is displayed in the full screen bubble UI to attribute | 57 // The extension's name is displayed in the full screen bubble UI to attribute |
| 59 // the cause of the full screen state change. | 58 // the cause of the full screen state change. |
| 60 void ToggleFullscreenModeWithExtension(const Extension& extension); | 59 void ToggleFullscreenModeWithExtension(const GURL& extension_url); |
| 61 | 60 |
| 62 // Notifications. | 61 // Notifications. |
| 63 void LostMouseLock(); | 62 void LostMouseLock(); |
| 64 void OnTabClosing(content::WebContents* web_contents); | 63 void OnTabClosing(content::WebContents* web_contents); |
| 65 void OnTabDeactivated(TabContentsWrapper* contents); | 64 void OnTabDeactivated(TabContentsWrapper* contents); |
| 66 void OnAcceptFullscreenPermission(const GURL& url, | 65 void OnAcceptFullscreenPermission(const GURL& url, |
| 67 FullscreenExitBubbleType bubble_type); | 66 FullscreenExitBubbleType bubble_type); |
| 68 void OnDenyFullscreenPermission(FullscreenExitBubbleType bubble_type); | 67 void OnDenyFullscreenPermission(FullscreenExitBubbleType bubble_type); |
| 69 void WindowFullscreenStateChanged(); | 68 void WindowFullscreenStateChanged(); |
| 70 bool HandleUserPressedEscape(); | 69 bool HandleUserPressedEscape(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // True if tab fullscreen has been allowed, either by settings or by user | 112 // True if tab fullscreen has been allowed, either by settings or by user |
| 114 // clicking the allow button on the fullscreen infobar. | 113 // clicking the allow button on the fullscreen infobar. |
| 115 bool tab_fullscreen_accepted_; | 114 bool tab_fullscreen_accepted_; |
| 116 | 115 |
| 117 MouseLockState mouse_lock_state_; | 116 MouseLockState mouse_lock_state_; |
| 118 | 117 |
| 119 DISALLOW_COPY_AND_ASSIGN(FullscreenController); | 118 DISALLOW_COPY_AND_ASSIGN(FullscreenController); |
| 120 }; | 119 }; |
| 121 | 120 |
| 122 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ | 121 #endif // CHROME_BROWSER_UI_FULLSCREEN_CONTROLLER_H_ |
| OLD | NEW |