| 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   // Toggles the toolbar state to be hidden or shown in fullscreen. | 
|  | 37   // Currently only supported on Mac. | 
|  | 38   virtual void ToggleFullscreenToolbar(); | 
|  | 39 | 
| 39   // Returns true if the window is fullscreen with additional UI elements. See | 40   // Returns true if the window is fullscreen with additional UI elements. See | 
| 40   // EnterFullscreen |with_toolbar|. | 41   // EnterFullscreen |with_toolbar|. | 
| 41   virtual bool IsFullscreenWithToolbar() const = 0; | 42   virtual bool IsFullscreenWithToolbar() const = 0; | 
| 42 | 43 | 
| 43   // Enters fullscreen and update exit bubble. | 44   // Enters fullscreen and update exit bubble. | 
| 44   // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 45   // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | 
| 45   // |with_toolbar| is ignored on other platforms. | 46   // |with_toolbar| is ignored on other platforms. | 
| 46   virtual void EnterFullscreen(const GURL& url, | 47   virtual void EnterFullscreen(const GURL& url, | 
| 47                                ExclusiveAccessBubbleType bubble_type, | 48                                ExclusiveAccessBubbleType bubble_type, | 
| 48                                bool with_toolbar) = 0; | 49                                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 | 72   // hide/unhide its download shelf widget when it is instructed to enter/exit | 
| 72   // fullscreen mode. | 73   // fullscreen mode. | 
| 73   // Displays the download shelf associated with currently active window. | 74   // Displays the download shelf associated with currently active window. | 
| 74   virtual void UnhideDownloadShelf(); | 75   virtual void UnhideDownloadShelf(); | 
| 75 | 76 | 
| 76   // Hides download shelf associated with currently active window. | 77   // Hides download shelf associated with currently active window. | 
| 77   virtual void HideDownloadShelf(); | 78   virtual void HideDownloadShelf(); | 
| 78 }; | 79 }; | 
| 79 | 80 | 
| 80 #endif  // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 81 #endif  // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ | 
| OLD | NEW | 
|---|