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

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

Issue 2798123002: Remove crushed sprite resource and layer (Closed)
Patch Set: Rebase and fix my nits Created 3 years, 8 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/ContextualSearchPanel.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
index 161d8c11d7a6442f8872bf506080010fbd3c6838..bbacc3ad4becc7285cb40fa63bb94266cbd32e10 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java
@@ -199,12 +199,6 @@ public class ContextualSearchPanel extends OverlayPanel {
if (getPeekPromoControl().isVisible()) {
getPeekPromoControl().animateAppearance();
}
- if (getImageControl().getIconSpriteControl().shouldAnimateAppearance()) {
- mPanelMetrics.setWasIconSpriteAnimated(true);
- getImageControl().getIconSpriteControl().animateApperance();
- } else {
- mPanelMetrics.setWasIconSpriteAnimated(false);
- }
}
if (fromState == PanelState.PEEKED
@@ -265,7 +259,7 @@ public class ContextualSearchPanel extends OverlayPanel {
setProgressBarCompletion(0);
setProgressBarVisible(false);
- getImageControl().hideStaticImage(false);
+ getImageControl().hideCustomImage(false);
super.onClosed(reason);
@@ -535,7 +529,7 @@ public class ContextualSearchPanel extends OverlayPanel {
* @param searchTerm The string that represents the search term.
*/
public void setSearchTerm(String searchTerm) {
- getImageControl().hideStaticImage(true);
+ getImageControl().hideCustomImage(true);
getSearchBarControl().setSearchTerm(searchTerm);
mPanelMetrics.onSearchRequestStarted();
}
@@ -546,7 +540,7 @@ public class ContextualSearchPanel extends OverlayPanel {
* @param end The portion of the context from the selection to its end.
*/
public void setContextDetails(String selection, String end) {
- getImageControl().hideStaticImage(true);
+ getImageControl().hideCustomImage(true);
getSearchBarControl().setContextDetails(selection, end);
mPanelMetrics.onSearchRequestStarted();
// Make sure the new Context draws.

Powered by Google App Engine
This is Rietveld 408576698