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

Side by Side Diff: chrome/browser/android/ntp/ntp_snippets_bridge.h

Issue 2609413005: [NTP::SectionOrder] Add category position metric for opened suggestions. (Closed)
Patch Set: rebase. Created 3 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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void ReloadSuggestions( 69 void ReloadSuggestions(
70 JNIEnv* env, 70 JNIEnv* env,
71 const base::android::JavaParamRef<jobject>& obj); 71 const base::android::JavaParamRef<jobject>& obj);
72 72
73 void DismissSuggestion( 73 void DismissSuggestion(
74 JNIEnv* env, 74 JNIEnv* env,
75 const base::android::JavaParamRef<jobject>& obj, 75 const base::android::JavaParamRef<jobject>& obj,
76 const base::android::JavaParamRef<jstring>& jurl, 76 const base::android::JavaParamRef<jstring>& jurl,
77 jint global_position, 77 jint global_position,
78 jint j_category_id, 78 jint j_category_id,
79 jint category_position, 79 jint position_in_category,
80 const base::android::JavaParamRef<jstring>& id_within_category); 80 const base::android::JavaParamRef<jstring>& id_within_category);
81 81
82 void DismissCategory(JNIEnv* env, 82 void DismissCategory(JNIEnv* env,
83 const base::android::JavaParamRef<jobject>& obj, 83 const base::android::JavaParamRef<jobject>& obj,
84 jint j_category_id); 84 jint j_category_id);
85 85
86 void RestoreDismissedCategories( 86 void RestoreDismissedCategories(
87 JNIEnv* env, 87 JNIEnv* env,
88 const base::android::JavaParamRef<jobject>& obj); 88 const base::android::JavaParamRef<jobject>& obj);
89 89
90 void OnPageShown( 90 void OnPageShown(
91 JNIEnv* env, 91 JNIEnv* env,
92 const base::android::JavaParamRef<jobject>& obj, 92 const base::android::JavaParamRef<jobject>& obj,
93 const base::android::JavaParamRef<jintArray>& jcategories, 93 const base::android::JavaParamRef<jintArray>& jcategories,
94 const base::android::JavaParamRef<jintArray>& jsuggestions_per_category); 94 const base::android::JavaParamRef<jintArray>& jsuggestions_per_category);
95 95
96 void OnSuggestionShown(JNIEnv* env, 96 void OnSuggestionShown(JNIEnv* env,
97 const base::android::JavaParamRef<jobject>& obj, 97 const base::android::JavaParamRef<jobject>& obj,
98 jint global_position, 98 jint global_position,
99 jint j_category_id, 99 jint j_category_id,
100 jint category_position, 100 jint position_in_category,
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_index,
109 jint category_position, 109 jint position_in_category,
110 jlong publish_timestamp_ms, 110 jlong publish_timestamp_ms,
111 jfloat score, 111 jfloat score,
112 int windowOpenDisposition); 112 int windowOpenDisposition);
113 113
114 void OnSuggestionMenuOpened(JNIEnv* env, 114 void OnSuggestionMenuOpened(JNIEnv* env,
115 const base::android::JavaParamRef<jobject>& obj, 115 const base::android::JavaParamRef<jobject>& obj,
116 jint global_position, 116 jint global_position,
117 jint j_category_id, 117 jint j_category_id,
118 jint category_position, 118 jint position_in_category,
119 jlong publish_timestamp_ms, 119 jlong publish_timestamp_ms,
120 jfloat score); 120 jfloat score);
121 121
122 void OnMoreButtonShown(JNIEnv* env, 122 void OnMoreButtonShown(JNIEnv* env,
123 const base::android::JavaParamRef<jobject>& obj, 123 const base::android::JavaParamRef<jobject>& obj,
124 jint j_category_id, 124 jint j_category_id,
125 jint position); 125 jint position);
126 126
127 void OnMoreButtonClicked(JNIEnv* env, 127 void OnMoreButtonClicked(JNIEnv* env,
128 const base::android::JavaParamRef<jobject>& obj, 128 const base::android::JavaParamRef<jobject>& obj,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 // The Java SnippetsBridge. 169 // The Java SnippetsBridge.
170 base::android::ScopedJavaGlobalRef<jobject> bridge_; 170 base::android::ScopedJavaGlobalRef<jobject> bridge_;
171 171
172 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; 172 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_;
173 173
174 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); 174 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge);
175 }; 175 };
176 176
177 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 177 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698