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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java

Issue 2952553002: Dismiss menu when infobar's host tab is hidden. (new translate infobar) (Closed)
Patch Set: use container#removeFromParentView Created 3 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/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
index a3711c7d10d4407219861bacf4feb1686dcf84fc..502039699c2e822a304193a70462079acd44c3f9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java
@@ -179,6 +179,12 @@ public abstract class InfoBar implements InfoBarView {
*/
protected void onStartedHiding() {}
+ /**
+ * Called just before the infobar container is removed from parent view and this infobar is at
+ * the top of the infobar stack.
+ */
+ protected void onInfoBarContainerStartedHiding() {}
+
long getNativeInfoBarPtr() {
return mNativeInfoBarPtr;
}

Powered by Google App Engine
This is Rietveld 408576698