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

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

Issue 2440843002: [Contextual Search] Pipe basic quick action data from C++ to Java (Closed)
Patch Set: [Contextual Search] Pipe basic quick action data from C++ to Java Created 4 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/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 706be85c6a42879f20d07504e4161b9e24959288..db1e4e2202e77989f02323f1e0d25f6a7585695b 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
@@ -519,11 +519,15 @@ public class ContextualSearchPanel extends OverlayPanel {
* Handles showing the resolved search term in the SearchBar.
* @param searchTerm The string that represents the search term.
* @param thumbnailUrl The URL of the thumbnail to display.
+ * @param quickActionUri The URI for the intent associated with the quick action.
+ * @param quickActionCategory The category for the quick action.
*/
- public void onSearchTermResolved(String searchTerm, String thumbnailUrl) {
+ public void onSearchTermResolved(String searchTerm, String thumbnailUrl, String quickActionUri,
+ String quickActionCategory) {
mPanelMetrics.onSearchTermResolved();
getSearchBarControl().setSearchTerm(searchTerm);
getSearchBarControl().animateSearchTermResolution();
+ getSearchBarControl().setQuickAction(quickActionUri, quickActionCategory);
getImageControl().setThumbnailUrl(thumbnailUrl);
}
@@ -661,6 +665,8 @@ public class ContextualSearchPanel extends OverlayPanel {
// Image Control
// ============================================================================================
+ // TODO(twellington): The image control should move to ContextualSearchBarControl since it
+ // is a part of the Bar.
private ContextualSearchImageControl mImageControl;
/**

Powered by Google App Engine
This is Rietveld 408576698