| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_NTP_NTP_SNIPPETS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ | 6 #define CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 jint global_position, | 98 jint global_position, |
| 99 jint j_category_id, | 99 jint j_category_id, |
| 100 jint category_position, | 100 jint category_position, |
| 101 jlong publish_timestamp_ms, | 101 jlong publish_timestamp_ms, |
| 102 jfloat score); | 102 jfloat score); |
| 103 | 103 |
| 104 void OnSuggestionOpened(JNIEnv* env, | 104 void OnSuggestionOpened(JNIEnv* env, |
| 105 const base::android::JavaParamRef<jobject>& obj, | 105 const base::android::JavaParamRef<jobject>& obj, |
| 106 jint global_position, | 106 jint global_position, |
| 107 jint j_category_id, | 107 jint j_category_id, |
| 108 jint category_index, |
| 108 jint category_position, | 109 jint category_position, |
| 109 jlong publish_timestamp_ms, | 110 jlong publish_timestamp_ms, |
| 110 jfloat score, | 111 jfloat score, |
| 111 int windowOpenDisposition); | 112 int windowOpenDisposition); |
| 112 | 113 |
| 113 void OnSuggestionMenuOpened(JNIEnv* env, | 114 void OnSuggestionMenuOpened(JNIEnv* env, |
| 114 const base::android::JavaParamRef<jobject>& obj, | 115 const base::android::JavaParamRef<jobject>& obj, |
| 115 jint global_position, | 116 jint global_position, |
| 116 jint j_category_id, | 117 jint j_category_id, |
| 117 jint category_position, | 118 jint category_position, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 | 168 |
| 168 // The Java SnippetsBridge. | 169 // The Java SnippetsBridge. |
| 169 base::android::ScopedJavaGlobalRef<jobject> bridge_; | 170 base::android::ScopedJavaGlobalRef<jobject> bridge_; |
| 170 | 171 |
| 171 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; | 172 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; |
| 172 | 173 |
| 173 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); | 174 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ | 177 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ |
| OLD | NEW |