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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 34e5e509b278477f87a49933a84dca42b7c9fa82..b1aea86c13aa6d556fe60deeb0a062c2cee43303 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -146,9 +146,13 @@ class BrowserWindow : public ui::BaseWindow {
// Returns true if the fullscreen bubble is visible.
virtual bool IsFullscreenBubbleVisible() const = 0;
- // Shows a notice teaching the user the new shortcut for going Back or
- // Forward.
- virtual void ShowNewBackShortcutBubble(bool forward) = 0;
+ // Shows a notice teaching the user the new shortcut for going back or forward
+ // if the user has pressed the old shortcut more than once in three seconds
+ // and the bubble has been shown less than five times.
+ virtual void MaybeShowNewBackShortcutBubble(bool forward) = 0;
+
+ // Hides the new back shortcut bubble, if showing, by fading it out.
+ virtual void HideNewBackShortcutBubble() = 0;
// Returns the size of WebContents in the browser. This may be called before
// the TabStripModel has an active tab.
« 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