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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java

Issue 1399983004: Remove ContextualSearchPanelDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extract-contextual-search
Patch Set: fix rebase Created 5 years, 2 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/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java
index 2df5235b1ef26f80f26a049afa62ba4b9a1c6cbf..6c9b0fc31dab6ab238458d121fbdfa480ce4415e 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPeekPromoControl.java
@@ -8,6 +8,7 @@ import android.content.Context;
import android.view.ViewGroup;
import org.chromium.chrome.R;
+import org.chromium.chrome.browser.compositor.bottombar.OverlayPanel;
import org.chromium.chrome.browser.compositor.layouts.ChromeAnimation;
import org.chromium.chrome.browser.util.MathUtils;
import org.chromium.ui.resources.dynamics.DynamicResourceLoader;
@@ -76,12 +77,12 @@ public class ContextualSearchPeekPromoControl extends ContextualSearchInflater
private final float mRippleMaximumWidthPx;
/**
- * @param panel The panel delegate.
+ * @param panel The panel.
* @param context The Android Context used to inflate the View.
* @param container The container View used to inflate the View.
* @param resourceLoader The resource loader that will handle the snapshot capturing.
*/
- public ContextualSearchPeekPromoControl(ContextualSearchPanelDelegate panel,
+ public ContextualSearchPeekPromoControl(OverlayPanel panel,
Context context,
ViewGroup container,
DynamicResourceLoader resourceLoader) {
@@ -224,7 +225,7 @@ public class ContextualSearchPeekPromoControl extends ContextualSearchInflater
*/
public void animateAppearance() {
// TODO(pedrosimonetti): Find a generic way to tell when a specific animation finishes.
- mSearchPanelDelegate.addToAnimation(this, AnimationType.APPEARANCE, 0.f, 1.f,
+ mOverlayPanel.addToAnimation(this, AnimationType.APPEARANCE, 0.f, 1.f,
ContextualSearchPanelAnimation.BASE_ANIMATION_DURATION_MS, 0);
}

Powered by Google App Engine
This is Rietveld 408576698