Commit ce1b5e78 authored by Theresa's avatar Theresa Committed by Commit Bot

Remove unused ObjectAnimator from LocationBarPhone

BUG=

Change-Id: I50da845bc3da1e1d4b19fa6298ee0d1a1dac3b46
Reviewed-on: https://chromium-review.googlesource.com/c/1292522Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601337}
parent 8fa67dfe
...@@ -166,11 +166,6 @@ public interface LocationBar extends UrlBarDelegate { ...@@ -166,11 +166,6 @@ public interface LocationBar extends UrlBarDelegate {
*/ */
void setDefaultTextEditActionModeCallback(ToolbarActionModeCallback callback); void setDefaultTextEditActionModeCallback(ToolbarActionModeCallback callback);
/**
* @return Whether suggestions are being shown for the location bar.
*/
boolean isSuggestionsListShown();
/** /**
* @return The margin to be applied to the URL bar based on the buttons currently visible next * @return The margin to be applied to the URL bar based on the buttons currently visible next
* to it, used to avoid text overlapping the buttons and vice versa. * to it, used to avoid text overlapping the buttons and vice versa.
......
...@@ -212,11 +212,6 @@ public class LocationBarLayout extends FrameLayout ...@@ -212,11 +212,6 @@ public class LocationBarLayout extends FrameLayout
mVoiceRecognitionHandler = new LocationBarVoiceRecognitionHandler(this); mVoiceRecognitionHandler = new LocationBarVoiceRecognitionHandler(this);
} }
@Override
public boolean isSuggestionsListShown() {
return mAutocompleteCoordinator.isSuggestionsListShown();
}
@Override @Override
protected void onFinishInflate() { protected void onFinishInflate() {
super.onFinishInflate(); super.onFinishInflate();
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.omnibox; package org.chromium.chrome.browser.omnibox;
import android.animation.ObjectAnimator;
import android.content.Context; import android.content.Context;
import android.graphics.Canvas; import android.graphics.Canvas;
import android.graphics.Rect; import android.graphics.Rect;
...@@ -29,7 +28,6 @@ public class LocationBarPhone extends LocationBarLayout { ...@@ -29,7 +28,6 @@ public class LocationBarPhone extends LocationBarLayout {
private View mFirstVisibleFocusedView; private View mFirstVisibleFocusedView;
private Runnable mKeyboardResizeModeTask; private Runnable mKeyboardResizeModeTask;
private ObjectAnimator mOmniboxBackgroundAnimator;
/** /**
* Constructor used to inflate from XML. * Constructor used to inflate from XML.
...@@ -80,10 +78,6 @@ public class LocationBarPhone extends LocationBarLayout { ...@@ -80,10 +78,6 @@ public class LocationBarPhone extends LocationBarLayout {
@Override @Override
public void onUrlFocusChange(boolean hasFocus) { public void onUrlFocusChange(boolean hasFocus) {
if (mOmniboxBackgroundAnimator != null && mOmniboxBackgroundAnimator.isRunning()) {
mOmniboxBackgroundAnimator.cancel();
mOmniboxBackgroundAnimator = null;
}
if (hasFocus) { if (hasFocus) {
// Remove the focus of this view once the URL field has taken focus as this view no // Remove the focus of this view once the URL field has taken focus as this view no
// longer needs it. // longer needs it.
......
...@@ -827,12 +827,6 @@ public class CustomTabToolbar ...@@ -827,12 +827,6 @@ public class CustomTabToolbar
@Override @Override
protected void setMenuButtonHighlightDrawable(boolean highlighting) {} protected void setMenuButtonHighlightDrawable(boolean highlighting) {}
@Override
public boolean isSuggestionsListShown() {
// Custom tabs do not support suggestions.
return false;
}
@Override @Override
public int getUrlContainerMarginEnd() { public int getUrlContainerMarginEnd() {
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment