| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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_EXCLUSIVE_ACCESS_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 6 #define CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 8 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
| 9 | 9 |
| 10 class GURL; | 10 class GURL; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 virtual bool IsFullscreen() const = 0; | 29 virtual bool IsFullscreen() const = 0; |
| 30 | 30 |
| 31 // Returns true if fullscreen with toolbar is supported. | 31 // Returns true if fullscreen with toolbar is supported. |
| 32 virtual bool SupportsFullscreenWithToolbar() const; | 32 virtual bool SupportsFullscreenWithToolbar() const; |
| 33 | 33 |
| 34 // Shows or hides the tab strip, toolbar and bookmark bar with in browser | 34 // Shows or hides the tab strip, toolbar and bookmark bar with in browser |
| 35 // fullscreen. | 35 // fullscreen. |
| 36 // Currently only supported on Mac. | 36 // Currently only supported on Mac. |
| 37 virtual void UpdateFullscreenWithToolbar(bool with_toolbar); | 37 virtual void UpdateFullscreenWithToolbar(bool with_toolbar); |
| 38 | 38 |
| 39 // Toggles the toolbar state to be hidden or shown in fullscreen. |
| 40 // Currently only supported on Mac. |
| 41 virtual void ToggleFullscreenToolbar(); |
| 42 |
| 39 // Returns true if the window is fullscreen with additional UI elements. See | 43 // Returns true if the window is fullscreen with additional UI elements. See |
| 40 // EnterFullscreen |with_toolbar|. | 44 // EnterFullscreen |with_toolbar|. |
| 41 virtual bool IsFullscreenWithToolbar() const = 0; | 45 virtual bool IsFullscreenWithToolbar() const = 0; |
| 42 | 46 |
| 43 // Enters fullscreen and update exit bubble. | 47 // Enters fullscreen and update exit bubble. |
| 44 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 48 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, |
| 45 // |with_toolbar| is ignored on other platforms. | 49 // |with_toolbar| is ignored on other platforms. |
| 46 virtual void EnterFullscreen(const GURL& url, | 50 virtual void EnterFullscreen(const GURL& url, |
| 47 ExclusiveAccessBubbleType bubble_type, | 51 ExclusiveAccessBubbleType bubble_type, |
| 48 bool with_toolbar) = 0; | 52 bool with_toolbar) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 71 // hide/unhide its download shelf widget when it is instructed to enter/exit | 75 // hide/unhide its download shelf widget when it is instructed to enter/exit |
| 72 // fullscreen mode. | 76 // fullscreen mode. |
| 73 // Displays the download shelf associated with currently active window. | 77 // Displays the download shelf associated with currently active window. |
| 74 virtual void UnhideDownloadShelf(); | 78 virtual void UnhideDownloadShelf(); |
| 75 | 79 |
| 76 // Hides download shelf associated with currently active window. | 80 // Hides download shelf associated with currently active window. |
| 77 virtual void HideDownloadShelf(); | 81 virtual void HideDownloadShelf(); |
| 78 }; | 82 }; |
| 79 | 83 |
| 80 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 84 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
| OLD | NEW |