import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.base.CalledByNative;
-import org.chromium.content.browser.DeviceUtils;
import org.chromium.content_public.browser.WebContents;
import org.chromium.ui.UiUtils;
+import org.chromium.ui.base.DeviceFormFactor;
import java.util.ArrayDeque;
import java.util.ArrayList;
private static final String TAG = "InfoBarContainer";
private static final long REATTACH_FADE_IN_MS = 250;
+ /**
+ * A listener for the InfoBar animation.
+ */
public interface InfoBarAnimationListener {
/**
* Notifies the subscriber when an animation is completed.
mAnimationSizer.setVisibility(INVISIBLE);
// The tablet has the infobars below the location bar. On the phone they are at the bottom.
- mInfoBarsOnTop = DeviceUtils.isTablet(activity);
+ mInfoBarsOnTop = DeviceFormFactor.isTablet(activity);
setGravity(determineGravity());
// Chromium's InfoBarContainer may add an InfoBar immediately during this initialization
setVisibility(INVISIBLE);
}
- public InfoBar findInfoBar(int nativeInfoBar) {
- for (InfoBar infoBar : mInfoBars) {
- if (infoBar.ownsNativeInfoBar(nativeInfoBar)) {
- return infoBar;
- }
- }
- return null;
- }
-
/**
* Adds an InfoBar to the view hierarchy.
* @param infoBar InfoBar to add to the View hierarchy.