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

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

Issue 1983353002: [Android] Coordinate Infobars and Snackbars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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/InfoBarContainer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
index c1ea4b0c2400369b1b7bf34e4325286f4f445963..f420572ff4f2ca75f724a49f489b00962af71002 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainer.java
@@ -7,7 +7,6 @@ package org.chromium.chrome.browser.infobar;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
-import android.view.ViewGroup;
import android.widget.FrameLayout;
import org.chromium.base.ObserverList;
@@ -16,6 +15,7 @@ import org.chromium.base.annotations.CalledByNative;
import org.chromium.chrome.browser.banners.SwipableOverlayView;
import org.chromium.chrome.browser.tab.EmptyTabObserver;
import org.chromium.chrome.browser.tab.Tab;
+import org.chromium.chrome.browser.tab.TabContentViewParent;
import org.chromium.chrome.browser.tab.TabObserver;
import org.chromium.content.browser.ContentViewCore;
import org.chromium.content_public.browser.WebContents;
@@ -110,7 +110,7 @@ public class InfoBarContainer extends SwipableOverlayView {
private int mTabId;
/** Parent view that contains the InfoBarContainerLayout. */
- private ViewGroup mParentView;
+ private TabContentViewParent mParentView;
/** Whether or not another View is occupying the same space as this one. */
private boolean mIsObscured;
@@ -118,7 +118,7 @@ public class InfoBarContainer extends SwipableOverlayView {
private final ObserverList<InfoBarContainerObserver> mObservers =
new ObserverList<InfoBarContainerObserver>();
- public InfoBarContainer(Context context, int tabId, ViewGroup parentView, Tab tab) {
+ public InfoBarContainer(Context context, int tabId, TabContentViewParent parentView, Tab tab) {
super(context, null);
tab.addObserver(mTabObserver);
@@ -190,7 +190,7 @@ public class InfoBarContainer extends SwipableOverlayView {
* Called when the parent {@link android.view.ViewGroup} has changed for
* this container.
*/
- public void onParentViewChanged(int tabId, ViewGroup parentView) {
+ public void onParentViewChanged(int tabId, TabContentViewParent parentView) {
mTabId = tabId;
mParentView = parentView;

Powered by Google App Engine
This is Rietveld 408576698