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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.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/contextualsearch/ContextualSearchManager.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java
index ab39b3f560fe70ef273b2d64e18849857725f3d3..bf6e5b0a0f7b0999bf8d69db2c3e9dbc50df5164 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java
@@ -656,23 +656,27 @@ public class ContextualSearchManager implements ContextualSearchManagementDelega
* @param contextLanguage The language of the original search term, or an empty string.
* @param thumbnailUrl The URL of the thumbnail to display in our UX.
* @param caption The caption to display.
+ * @param quickActionUri The URI for the intent associated with the quick action.
+ * @param quickActionCategory The category for the quick action.
*/
@CalledByNative
public void onSearchTermResolutionResponse(boolean isNetworkUnavailable, int responseCode,
final String searchTerm, final String displayText, final String alternateTerm,
final String mid, boolean doPreventPreload, int selectionStartAdjust,
int selectionEndAdjust, final String contextLanguage, final String thumbnailUrl,
- final String caption) {
+ final String caption, final String quickActionUri, final String quickActionCategory) {
mNetworkCommunicator.handleSearchTermResolutionResponse(isNetworkUnavailable, responseCode,
searchTerm, displayText, alternateTerm, mid, doPreventPreload, selectionStartAdjust,
- selectionEndAdjust, contextLanguage, thumbnailUrl, caption);
+ selectionEndAdjust, contextLanguage, thumbnailUrl, caption, quickActionUri,
+ quickActionCategory);
}
@Override
public void handleSearchTermResolutionResponse(boolean isNetworkUnavailable, int responseCode,
String searchTerm, String displayText, String alternateTerm, String mid,
boolean doPreventPreload, int selectionStartAdjust, int selectionEndAdjust,
- String contextLanguage, String thumbnailUrl, String caption) {
+ String contextLanguage, String thumbnailUrl, String caption, String quickActionUri,
+ String quickActionCategory) {
// Show an appropriate message for what to search for.
String message;
boolean doLiteralSearch = false;
@@ -692,7 +696,8 @@ public class ContextualSearchManager implements ContextualSearchManagementDelega
doLiteralSearch = true;
}
- mSearchPanel.onSearchTermResolved(message, thumbnailUrl);
+ mSearchPanel.onSearchTermResolved(message, thumbnailUrl, quickActionUri,
+ quickActionCategory);
if (!TextUtils.isEmpty(caption)) {
// Call #onSetCaption() to set the caption. For entities, the caption should not be
// regarded as an answer. In the future, when quick actions are added, doesAnswer will

Powered by Google App Engine
This is Rietveld 408576698