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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java

Issue 820063002: Add support for providers called when the omnibox is focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build. Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/android/omnibox/autocomplete_controller_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
index d18bc0127c1baa28326c8be9be8e94f333547f80..ed43b69a99c894aa9438242ddd1b28a7858de11d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/AutocompleteController.java
@@ -127,7 +127,7 @@ public class AutocompleteController {
if (profile == null || TextUtils.isEmpty(url)) return;
mNativeAutocompleteControllerAndroid = nativeInit(profile);
if (mNativeAutocompleteControllerAndroid != 0) {
- nativeStartZeroSuggest(mNativeAutocompleteControllerAndroid, omniboxText, url,
+ nativeOnOmniboxFocused(mNativeAutocompleteControllerAndroid, omniboxText, url,
isQueryInOmnibox, focusedFromFakebox);
}
}
@@ -276,7 +276,7 @@ public class AutocompleteController {
private native void nativeOnSuggestionSelected(long nativeAutocompleteControllerAndroid,
int selectedIndex, String currentPageUrl, boolean isQueryInOmnibox,
boolean focusedFromFakebox, long elapsedTimeSinceModified, WebContents webContents);
- private native void nativeStartZeroSuggest(long nativeAutocompleteControllerAndroid,
+ private native void nativeOnOmniboxFocused(long nativeAutocompleteControllerAndroid,
String omniboxText, String currentUrl, boolean isQueryInOmnibox,
boolean focusedFromFakebox);
private native void nativeDeleteSuggestion(long nativeAutocompleteControllerAndroid,
« no previous file with comments | « no previous file | chrome/browser/android/omnibox/autocomplete_controller_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698