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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 1414033009: Implement a Menu Item to Hide the Toolbar in Fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some issues Created 5 years, 1 month 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/browser_close_manager.h" 9 #include "chrome/browser/lifetime/browser_close_manager.h"
10 #include "chrome/browser/signin/chrome_signin_helper.h" 10 #include "chrome/browser/signin/chrome_signin_helper.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash 141 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash
142 // keep the controls in a slide-down panel. 142 // keep the controls in a slide-down panel.
143 virtual bool ShouldHideUIForFullscreen() const = 0; 143 virtual bool ShouldHideUIForFullscreen() const = 0;
144 144
145 // Returns true if the fullscreen bubble is visible. 145 // Returns true if the fullscreen bubble is visible.
146 virtual bool IsFullscreenBubbleVisible() const = 0; 146 virtual bool IsFullscreenBubbleVisible() const = 0;
147 147
148 // Show or hide the tab strip, toolbar and bookmark bar when in browser 148 // Show or hide the tab strip, toolbar and bookmark bar when in browser
149 // fullscreen. 149 // fullscreen.
150 // Currently only supported on Mac. 150 // Currently only supported on Mac.
151 virtual bool SupportsFullscreenWithToolbar() const = 0;
152 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0; 151 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0;
152 virtual void ToggleFullscreenToolbar() = 0;
153 virtual bool IsFullscreenWithToolbar() const = 0; 153 virtual bool IsFullscreenWithToolbar() const = 0;
154 virtual bool ShouldHideFullscreenToolbar() const = 0;
154 155
155 #if defined(OS_WIN) 156 #if defined(OS_WIN)
156 // Sets state for entering or exiting Win8 Metro snap mode. 157 // Sets state for entering or exiting Win8 Metro snap mode.
157 virtual void SetMetroSnapMode(bool enable) = 0; 158 virtual void SetMetroSnapMode(bool enable) = 0;
158 159
159 // Returns whether the window is currently in Win8 Metro snap mode. 160 // Returns whether the window is currently in Win8 Metro snap mode.
160 virtual bool IsInMetroSnapMode() const = 0; 161 virtual bool IsInMetroSnapMode() const = 0;
161 #endif 162 #endif
162 163
163 // Returns the location bar. 164 // Returns the location bar.
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Returns object implementing ExclusiveAccessContext interface. 392 // Returns object implementing ExclusiveAccessContext interface.
392 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; 393 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0;
393 394
394 protected: 395 protected:
395 friend class BrowserCloseManager; 396 friend class BrowserCloseManager;
396 friend class BrowserView; 397 friend class BrowserView;
397 virtual void DestroyBrowser() = 0; 398 virtual void DestroyBrowser() = 0;
398 }; 399 };
399 400
400 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 401 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698