Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Side by Side Diff: chrome/browser/ui/exclusive_access/exclusive_access_context.h

Issue 2089323002: Refactored FullscreenController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment and nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11 matching lines...) Expand all
22 public: 22 public:
23 virtual ~ExclusiveAccessContext() {} 23 virtual ~ExclusiveAccessContext() {}
24 24
25 // Returns the current profile associated with the window. 25 // Returns the current profile associated with the window.
26 virtual Profile* GetProfile() = 0; 26 virtual Profile* GetProfile() = 0;
27 27
28 // Returns true if the window hosting the exclusive access bubble is 28 // Returns true if the window hosting the exclusive access bubble is
29 // fullscreen. 29 // fullscreen.
30 virtual bool IsFullscreen() const = 0; 30 virtual bool IsFullscreen() const = 0;
31 31
32 // Shows or hides the tab strip, toolbar and bookmark bar with in browser 32 // Called when we transition between tab and browser fullscreen. This method
33 // fullscreen. 33 // updates the UI by showing/hiding the tab strip, toolbar and bookmark bar
34 // Currently only supported on Mac. 34 // in the browser fullscreen. Currently only supported on Mac.
35 // TODO (spqchan): Deprecate this method. crbug.com/579259 35 virtual void UpdateUIForTabFullscreen(bool is_tab_fullscreen);
36 virtual void UpdateFullscreenWithToolbar(bool with_toolbar);
37 36
38 // Updates the toolbar state to be hidden or shown in fullscreen according to 37 // Updates the toolbar state to be hidden or shown in fullscreen according to
39 // the preference's state. Only supported on Mac. 38 // the preference's state. Only supported on Mac.
40 virtual void UpdateFullscreenToolbar(); 39 virtual void UpdateFullscreenToolbar();
41 40
42 // Enters fullscreen and update exit bubble. 41 // Enters fullscreen and update exit bubble.
43 virtual void EnterFullscreen(const GURL& url, 42 virtual void EnterFullscreen(const GURL& url,
44 ExclusiveAccessBubbleType bubble_type) = 0; 43 ExclusiveAccessBubbleType bubble_type) = 0;
45 44
46 // Exits fullscreen and update exit bubble. 45 // Exits fullscreen and update exit bubble.
(...skipping 16 matching lines...) Expand all
63 // hide/unhide its download shelf widget when it is instructed to enter/exit 62 // hide/unhide its download shelf widget when it is instructed to enter/exit
64 // fullscreen mode. 63 // fullscreen mode.
65 // Displays the download shelf associated with currently active window. 64 // Displays the download shelf associated with currently active window.
66 virtual void UnhideDownloadShelf() = 0; 65 virtual void UnhideDownloadShelf() = 0;
67 66
68 // Hides download shelf associated with currently active window. 67 // Hides download shelf associated with currently active window.
69 virtual void HideDownloadShelf() = 0; 68 virtual void HideDownloadShelf() = 0;
70 }; 69 };
71 70
72 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_ 71 #endif // CHROME_BROWSER_UI_EXCLUSIVE_ACCESS_EXCLUSIVE_ACCESS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698