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

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

Issue 2065283002: Add heuristics to limit showing of new backspace UI bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: 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 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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/lifetime/browser_close_manager.h" 10 #include "chrome/browser/lifetime/browser_close_manager.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // + or - in the app menu to change zoom). 139 // + or - in the app menu to change zoom).
140 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; 140 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0;
141 141
142 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash 142 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash
143 // keep the controls in a slide-down panel. 143 // keep the controls in a slide-down panel.
144 virtual bool ShouldHideUIForFullscreen() const = 0; 144 virtual bool ShouldHideUIForFullscreen() const = 0;
145 145
146 // Returns true if the fullscreen bubble is visible. 146 // Returns true if the fullscreen bubble is visible.
147 virtual bool IsFullscreenBubbleVisible() const = 0; 147 virtual bool IsFullscreenBubbleVisible() const = 0;
148 148
149 // Shows a notice teaching the user the new shortcut for going Back or 149 // Shows a notice teaching the user the new shortcut for going back or forward
150 // Forward. 150 // if the user has pressed the old shortcut more than once in three seconds
151 virtual void ShowNewBackShortcutBubble(bool forward) = 0; 151 // and the bubble has been shown less than five times.
152 virtual void MaybeShowNewBackShortcutBubble(bool forward) = 0;
153
154 // Hides the new back shortcut bubble, if showing, by fading it out.
155 virtual void HideNewBackShortcutBubble() = 0;
152 156
153 // Returns the size of WebContents in the browser. This may be called before 157 // Returns the size of WebContents in the browser. This may be called before
154 // the TabStripModel has an active tab. 158 // the TabStripModel has an active tab.
155 virtual gfx::Size GetContentsSize() const = 0; 159 virtual gfx::Size GetContentsSize() const = 0;
156 160
157 // Returns the location bar. 161 // Returns the location bar.
158 virtual LocationBar* GetLocationBar() const = 0; 162 virtual LocationBar* GetLocationBar() const = 0;
159 163
160 // Tries to focus the location bar. Clears the window focus (to avoid 164 // Tries to focus the location bar. Clears the window focus (to avoid
161 // inconsistent state) if this fails. 165 // inconsistent state) if this fails.
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // currently resides in. 386 // currently resides in.
383 virtual std::string GetWorkspace() const = 0; 387 virtual std::string GetWorkspace() const = 0;
384 388
385 protected: 389 protected:
386 friend class BrowserCloseManager; 390 friend class BrowserCloseManager;
387 friend class BrowserView; 391 friend class BrowserView;
388 virtual void DestroyBrowser() = 0; 392 virtual void DestroyBrowser() = 0;
389 }; 393 };
390 394
391 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 395 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_view_prefs.cc ('k') | chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698