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

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

Issue 2706333002: [TTS] Add a Java Context linked to existing native (Closed)
Patch Set: Nothing, I think. Created 3 years, 9 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 f5c07f99bd0ecf406f0527f8c04ea82954fa499a..baecee1297ab278432d9c6dcb08372d21b107cb4 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
@@ -546,14 +546,16 @@ public class ContextualSearchPanel extends OverlayPanel {
}
/**
- * Sets the search context to display in the SearchBar.
+ * Sets the search context details to display in the SearchBar.
* @param selection The portion of the context that represents the user's selection.
* @param end The portion of the context from the selection to its end.
*/
- public void setSearchContext(String selection, String end) {
+ public void setContextDetails(String selection, String end) {
getImageControl().hideStaticImage(true);
- getSearchBarControl().setSearchContext(selection, end);
+ getSearchBarControl().setContextDetails(selection, end);
mPanelMetrics.onSearchRequestStarted();
+ // Make sure the new Context draws.
+ requestUpdate();
}
/**

Powered by Google App Engine
This is Rietveld 408576698