| 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 "build/build_config.h" | 8 #include "build/build_config.h" | 
| 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 9 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 
| 10 | 10 | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 30   virtual bool IsFullscreen() const = 0; | 30   virtual bool IsFullscreen() const = 0; | 
| 31 | 31 | 
| 32   // Returns true if fullscreen with toolbar is supported. | 32   // Returns true if fullscreen with toolbar is supported. | 
| 33   virtual bool SupportsFullscreenWithToolbar() const; | 33   virtual bool SupportsFullscreenWithToolbar() const; | 
| 34 | 34 | 
| 35   // Shows or hides the tab strip, toolbar and bookmark bar with in browser | 35   // Shows or hides the tab strip, toolbar and bookmark bar with in browser | 
| 36   // fullscreen. | 36   // fullscreen. | 
| 37   // Currently only supported on Mac. | 37   // Currently only supported on Mac. | 
| 38   virtual void UpdateFullscreenWithToolbar(bool with_toolbar); | 38   virtual void UpdateFullscreenWithToolbar(bool with_toolbar); | 
| 39 | 39 | 
| 40   // Toggles the toolbar state to be hidden or shown in fullscreen. Updates | 40   // Updates the toolbar state to be hidden or shown in fullscreen according to | 
| 41   // the preference accordingly. Only supported on Mac. | 41   // the preference's state. Only supported on Mac. | 
| 42   virtual void ToggleFullscreenToolbar(); | 42   virtual void UpdateFullscreenToolbar(); | 
| 43 | 43 | 
| 44   // Returns true if the window is fullscreen with additional UI elements. See | 44   // Returns true if the window is fullscreen with additional UI elements. See | 
| 45   // EnterFullscreen |with_toolbar|. | 45   // EnterFullscreen |with_toolbar|. | 
| 46   virtual bool IsFullscreenWithToolbar() const; | 46   virtual bool IsFullscreenWithToolbar() const; | 
| 47 | 47 | 
| 48   // Enters fullscreen and update exit bubble. | 48   // Enters fullscreen and update exit bubble. | 
| 49   // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 49   // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 
| 50   // |with_toolbar| is ignored on other platforms. | 50   // |with_toolbar| is ignored on other platforms. | 
| 51   virtual void EnterFullscreen(const GURL& url, | 51   virtual void EnterFullscreen(const GURL& url, | 
| 52                                ExclusiveAccessBubbleType bubble_type, | 52                                ExclusiveAccessBubbleType bubble_type, | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 80   // hide/unhide its download shelf widget when it is instructed to enter/exit | 80   // hide/unhide its download shelf widget when it is instructed to enter/exit | 
| 81   // fullscreen mode. | 81   // fullscreen mode. | 
| 82   // Displays the download shelf associated with currently active window. | 82   // Displays the download shelf associated with currently active window. | 
| 83   virtual void UnhideDownloadShelf() = 0; | 83   virtual void UnhideDownloadShelf() = 0; | 
| 84 | 84 | 
| 85   // Hides download shelf associated with currently active window. | 85   // Hides download shelf associated with currently active window. | 
| 86   virtual void HideDownloadShelf() = 0; | 86   virtual void HideDownloadShelf() = 0; | 
| 87 }; | 87 }; | 
| 88 | 88 | 
| 89 #endif  // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 89 #endif  // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 
| OLD | NEW | 
|---|