Chromium Code Reviews| 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 10 matching lines...) Expand all Loading... | |
| 21 public: | 21 public: |
| 22 virtual ~ExclusiveAccessContext() {} | 22 virtual ~ExclusiveAccessContext() {} |
| 23 | 23 |
| 24 // Returns the current profile associated with the window. | 24 // Returns the current profile associated with the window. |
| 25 virtual Profile* GetProfile() = 0; | 25 virtual Profile* GetProfile() = 0; |
| 26 | 26 |
| 27 // Returns true if the window hosting the exclusive access bubble is | 27 // Returns true if the window hosting the exclusive access bubble is |
| 28 // fullscreen. | 28 // fullscreen. |
| 29 virtual bool IsFullscreen() const = 0; | 29 virtual bool IsFullscreen() const = 0; |
| 30 | 30 |
| 31 // Returns true if fullscreen with toolbar is supported. | |
| 32 virtual bool SupportsFullscreenWithToolbar() const; | |
| 33 | |
| 34 // Shows or hides the tab strip, toolbar and bookmark bar with in browser | 31 // Shows or hides the tab strip, toolbar and bookmark bar with in browser |
| 35 // fullscreen. | 32 // fullscreen. |
| 36 // Currently only supported on Mac. | 33 // Currently only supported on Mac. |
| 37 virtual void UpdateFullscreenWithToolbar(bool with_toolbar); | 34 virtual void UpdateFullscreenWithToolbar(bool with_toolbar); |
| 38 | 35 |
| 36 virtual void ToggleFullscreenToolbar(); | |
|
Robert Sesek
2015/11/03 20:09:38
Needs a comment.
spqchan
2015/11/04 01:43:42
Done.
| |
| 37 | |
| 39 // Returns true if the window is fullscreen with additional UI elements. See | 38 // Returns true if the window is fullscreen with additional UI elements. See |
| 40 // EnterFullscreen |with_toolbar|. | 39 // EnterFullscreen |with_toolbar|. |
| 41 virtual bool IsFullscreenWithToolbar() const = 0; | 40 virtual bool IsFullscreenWithToolbar() const = 0; |
| 42 | 41 |
| 43 // Enters fullscreen and update exit bubble. | 42 // Enters fullscreen and update exit bubble. |
| 44 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 43 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, |
| 45 // |with_toolbar| is ignored on other platforms. | 44 // |with_toolbar| is ignored on other platforms. |
| 46 virtual void EnterFullscreen(const GURL& url, | 45 virtual void EnterFullscreen(const GURL& url, |
| 47 ExclusiveAccessBubbleType bubble_type, | 46 ExclusiveAccessBubbleType bubble_type, |
| 48 bool with_toolbar) = 0; | 47 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 | 70 // hide/unhide its download shelf widget when it is instructed to enter/exit |
| 72 // fullscreen mode. | 71 // fullscreen mode. |
| 73 // Displays the download shelf associated with currently active window. | 72 // Displays the download shelf associated with currently active window. |
| 74 virtual void UnhideDownloadShelf(); | 73 virtual void UnhideDownloadShelf(); |
| 75 | 74 |
| 76 // Hides download shelf associated with currently active window. | 75 // Hides download shelf associated with currently active window. |
| 77 virtual void HideDownloadShelf(); | 76 virtual void HideDownloadShelf(); |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 79 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ |
| OLD | NEW |