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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java

Issue 1702003004: Replace update menu badge (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2623
Patch Set: Created 4 years, 10 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/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java
index 63c4f389c6513415a6bae2494005e0086ccf8501..44e21abedf0b33d8c46de46a6fc31dc98c86663e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java
@@ -52,10 +52,18 @@ public interface Toolbar {
void showAppMenuUpdateBadge();
/**
+ * Whether the update badge that is displayed on top of the app menu button is showing.
+ */
+ boolean isShowingAppMenuUpdateBadge();
+
+ /**
* Remove the update badge on the app menu button. Initially the badge is invisible so that it
* gets measured and the tab switcher animation looks correct when the badge is first shown. If
- * the badge will never be shown, this method should be called to change the visibility to
- * gone to avoid unnecessary layout work.
+ * the badge will never be shown or should no longer be shown, this method should be called to
+ * change the visibility to gone to avoid unnecessary layout work. The disappearance of the
+ * badge is optionally animated if it was previously visible.
+ *
+ * @param animate Whether the removal of the badge should be animated.
*/
- void removeAppMenuUpdateBadge();
+ void removeAppMenuUpdateBadge(boolean animate);
}

Powered by Google App Engine
This is Rietveld 408576698