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

Unified Diff: chrome/browser/ui/views/new_back_shortcut_bubble.h

Issue 2041293002: Add heuristics to limit showing of new backspace UI bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/new_back_shortcut_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/new_back_shortcut_bubble.h
diff --git a/chrome/browser/ui/views/new_back_shortcut_bubble.h b/chrome/browser/ui/views/new_back_shortcut_bubble.h
index 38b2e9917ebc23d7f13ab0f037ce012240e159c1..4956eb7adbe194d699928e741f6ada19d68ec36a 100644
--- a/chrome/browser/ui/views/new_back_shortcut_bubble.h
+++ b/chrome/browser/ui/views/new_back_shortcut_bubble.h
@@ -33,12 +33,19 @@ class Widget;
// TODO(mgiuca): Remove this in M54 (https://crbug.com/610039).
class NewBackShortcutBubble : public gfx::AnimationDelegate {
public:
- NewBackShortcutBubble(ExclusiveAccessBubbleViewsContext* context,
- bool forward);
+ explicit NewBackShortcutBubble(ExclusiveAccessBubbleViewsContext* context);
~NewBackShortcutBubble() override;
+ // Returns whether the UI is currently visible.
+ bool IsVisible() const;
+
+ // Ensures the UI is displaying the correct shortcut for forward/back based on
+ // |forward|, and resets the hide timer.
void UpdateContent(bool forward);
+ // Fades out the UI immediately.
+ void Hide();
+
private:
// gfx::AnimationDelegate:
void AnimationProgressed(const gfx::Animation* animation) override;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/new_back_shortcut_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698