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

Unified 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: Fixed test 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/exclusive_access/exclusive_access_context.h
diff --git a/chrome/browser/ui/exclusive_access/exclusive_access_context.h b/chrome/browser/ui/exclusive_access/exclusive_access_context.h
index 1974b10d85542d0a949d02dc80e61f51d6be3a05..3b02a4bdb3ebdd3322abe14de09c81878f6b1926 100644
--- a/chrome/browser/ui/exclusive_access/exclusive_access_context.h
+++ b/chrome/browser/ui/exclusive_access/exclusive_access_context.h
@@ -20,6 +20,11 @@ class WebContents;
// context.
class ExclusiveAccessContext {
public:
+ enum TabFullscreenState {
+ STATE_ENTER_TAB_FULLSCREEN,
+ STATE_EXIT_TAB_FULLSCREEN,
+ };
+
virtual ~ExclusiveAccessContext() {}
// Returns the current profile associated with the window.
@@ -29,11 +34,10 @@ class ExclusiveAccessContext {
// fullscreen.
virtual bool IsFullscreen() const = 0;
- // Shows or hides the tab strip, toolbar and bookmark bar with in browser
- // fullscreen.
- // Currently only supported on Mac.
- // TODO (spqchan): Deprecate this method. crbug.com/579259
- virtual void UpdateFullscreenWithToolbar(bool with_toolbar);
+ // Called when we transition between tab and browser fullscreen. This method
+ // updates the UI by showing/hiding the tab strip, toolbar and bookmark bar
+ // in the browser fullscreen. Currently only supported on Mac.
+ virtual void UpdateUIForTabFullscreen(TabFullscreenState state);
// Updates the toolbar state to be hidden or shown in fullscreen according to
// the preference's state. Only supported on Mac.
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/exclusive_access/exclusive_access_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698