OLD | NEW |
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void ResetSession(JNIEnv* env, jobject obj); | 55 void ResetSession(JNIEnv* env, jobject obj); |
56 void OnSuggestionSelected(JNIEnv* env, | 56 void OnSuggestionSelected(JNIEnv* env, |
57 jobject obj, | 57 jobject obj, |
58 jint selected_index, | 58 jint selected_index, |
59 jstring j_current_url, | 59 jstring j_current_url, |
60 jboolean is_query_in_omnibox, | 60 jboolean is_query_in_omnibox, |
61 jboolean focused_from_fakebox, | 61 jboolean focused_from_fakebox, |
62 jlong elapsed_time_since_first_modified, | 62 jlong elapsed_time_since_first_modified, |
63 jobject j_web_contents); | 63 jobject j_web_contents); |
64 void DeleteSuggestion(JNIEnv* env, jobject obj, int selected_index); | 64 void DeleteSuggestion(JNIEnv* env, jobject obj, int selected_index); |
65 base::android::ScopedJavaLocalRef<jstring> UpdateMatchDestinationURL( | 65 base::android::ScopedJavaLocalRef<jstring> |
66 JNIEnv* env, | 66 UpdateMatchDestinationURLWithQueryFormulationTime( |
67 jobject obj, | 67 JNIEnv* env, |
68 jint selected_index, | 68 jobject obj, |
69 jlong elapsed_time_since_input_change); | 69 jint selected_index, |
| 70 jlong elapsed_time_since_input_change); |
70 | 71 |
71 base::android::ScopedJavaLocalRef<jobject> GetTopSynchronousMatch( | 72 base::android::ScopedJavaLocalRef<jobject> GetTopSynchronousMatch( |
72 JNIEnv* env, | 73 JNIEnv* env, |
73 jobject obj, | 74 jobject obj, |
74 jstring query); | 75 jstring query); |
75 | 76 |
76 // KeyedService: | 77 // KeyedService: |
77 virtual void Shutdown() OVERRIDE; | 78 virtual void Shutdown() OVERRIDE; |
78 | 79 |
79 class Factory : public BrowserContextKeyedServiceFactory { | 80 class Factory : public BrowserContextKeyedServiceFactory { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_; | 147 JavaObjectWeakGlobalRef weak_java_autocomplete_controller_android_; |
147 Profile* profile_; | 148 Profile* profile_; |
148 | 149 |
149 DISALLOW_COPY_AND_ASSIGN(AutocompleteControllerAndroid); | 150 DISALLOW_COPY_AND_ASSIGN(AutocompleteControllerAndroid); |
150 }; | 151 }; |
151 | 152 |
152 // Registers the LocationBar native method. | 153 // Registers the LocationBar native method. |
153 bool RegisterAutocompleteControllerAndroid(JNIEnv* env); | 154 bool RegisterAutocompleteControllerAndroid(JNIEnv* env); |
154 | 155 |
155 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ | 156 #endif // CHROME_BROWSER_ANDROID_OMNIBOX_AUTOCOMPLETE_CONTROLLER_ANDROID_H_ |
OLD | NEW |