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

Side by Side Diff: chrome/browser/android/omnibox/autocomplete_controller_android.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_
6 #define CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ 6 #define CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 28 matching lines...) Expand all
39 jint j_cursor_pos, 39 jint j_cursor_pos,
40 jstring j_desired_tld, 40 jstring j_desired_tld,
41 jstring j_current_url, 41 jstring j_current_url,
42 bool prevent_inline_autocomplete, 42 bool prevent_inline_autocomplete,
43 bool prefer_keyword, 43 bool prefer_keyword,
44 bool allow_exact_keyword_match, 44 bool allow_exact_keyword_match,
45 bool best_match_only); 45 bool best_match_only);
46 base::android::ScopedJavaLocalRef<jobject> Classify(JNIEnv* env, 46 base::android::ScopedJavaLocalRef<jobject> Classify(JNIEnv* env,
47 jobject obj, 47 jobject obj,
48 jstring j_text); 48 jstring j_text);
49 void StartZeroSuggest(JNIEnv* env, 49 void OnOmniboxFocused(JNIEnv* env,
50 jobject obj, 50 jobject obj,
51 jstring j_omnibox_text, 51 jstring j_omnibox_text,
52 jstring j_current_url, 52 jstring j_current_url,
53 jboolean is_query_in_omnibox, 53 jboolean is_query_in_omnibox,
54 jboolean focused_from_fakebox); 54 jboolean focused_from_fakebox);
55 void Stop(JNIEnv* env, jobject obj, bool clear_result); 55 void Stop(JNIEnv* env, jobject obj, bool clear_result);
56 void ResetSession(JNIEnv* env, jobject obj); 56 void ResetSession(JNIEnv* env, jobject obj);
57 void OnSuggestionSelected(JNIEnv* env, 57 void OnSuggestionSelected(JNIEnv* env,
58 jobject obj, 58 jobject obj,
59 jint selected_index, 59 jint selected_index,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_; 148 JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_;
149 Profile* profile_; 149 Profile* profile_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(AutocompleteControllerAndroid); 151 DISALLOW_COPY_AND_ASSIGN(AutocompleteControllerAndroid);
152 }; 152 };
153 153
154 // Registers the LocationBar native method. 154 // Registers the LocationBar native method.
155 bool RegisterAutocompleteControllerAndroid(JNIEnv* env); 155 bool RegisterAutocompleteControllerAndroid(JNIEnv* env);
156 156
157 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ 157 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698