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

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: added TODO. 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void ReloadSuggestions( 72 void ReloadSuggestions(
73 JNIEnv* env, 73 JNIEnv* env,
74 const base::android::JavaParamRef<jobject>& obj); 74 const base::android::JavaParamRef<jobject>& obj);
75 75
76 void DismissSuggestion( 76 void DismissSuggestion(
77 JNIEnv* env, 77 JNIEnv* env,
78 const base::android::JavaParamRef<jobject>& obj, 78 const base::android::JavaParamRef<jobject>& obj,
79 const base::android::JavaParamRef<jstring>& jurl, 79 const base::android::JavaParamRef<jstring>& jurl,
80 jint global_position, 80 jint global_position,
81 jint j_category_id, 81 jint j_category_id,
82 jint category_position, 82 jint position_in_category,
83 const base::android::JavaParamRef<jstring>& id_within_category); 83 const base::android::JavaParamRef<jstring>& id_within_category);
84 84
85 void DismissCategory(JNIEnv* env, 85 void DismissCategory(JNIEnv* env,
86 const base::android::JavaParamRef<jobject>& obj, 86 const base::android::JavaParamRef<jobject>& obj,
87 jint j_category_id); 87 jint j_category_id);
88 88
89 void RestoreDismissedCategories( 89 void RestoreDismissedCategories(
90 JNIEnv* env, 90 JNIEnv* env,
91 const base::android::JavaParamRef<jobject>& obj); 91 const base::android::JavaParamRef<jobject>& obj);
92 92
93 void OnPageShown( 93 void OnPageShown(
94 JNIEnv* env, 94 JNIEnv* env,
95 const base::android::JavaParamRef<jobject>& obj, 95 const base::android::JavaParamRef<jobject>& obj,
96 const base::android::JavaParamRef<jintArray>& jcategories, 96 const base::android::JavaParamRef<jintArray>& jcategories,
97 const base::android::JavaParamRef<jintArray>& jsuggestions_per_category); 97 const base::android::JavaParamRef<jintArray>& jsuggestions_per_category);
98 98
99 void OnSuggestionShown(JNIEnv* env, 99 void OnSuggestionShown(JNIEnv* env,
100 const base::android::JavaParamRef<jobject>& obj, 100 const base::android::JavaParamRef<jobject>& obj,
101 jint global_position, 101 jint global_position,
102 jint j_category_id, 102 jint j_category_id,
103 jint category_position, 103 jint position_in_category,
104 jlong publish_timestamp_ms, 104 jlong publish_timestamp_ms,
105 jfloat score); 105 jfloat score);
106 106
107 void OnSuggestionOpened(JNIEnv* env, 107 void OnSuggestionOpened(JNIEnv* env,
108 const base::android::JavaParamRef<jobject>& obj, 108 const base::android::JavaParamRef<jobject>& obj,
109 jint global_position, 109 jint global_position,
110 jint j_category_id, 110 jint j_category_id,
111 jint category_position, 111 jint position_in_category,
112 jlong publish_timestamp_ms, 112 jlong publish_timestamp_ms,
113 jfloat score, 113 jfloat score,
114 int windowOpenDisposition); 114 int windowOpenDisposition);
115 115
116 void OnSuggestionMenuOpened(JNIEnv* env, 116 void OnSuggestionMenuOpened(JNIEnv* env,
117 const base::android::JavaParamRef<jobject>& obj, 117 const base::android::JavaParamRef<jobject>& obj,
118 jint global_position, 118 jint global_position,
119 jint j_category_id, 119 jint j_category_id,
120 jint category_position, 120 jint position_in_category,
121 jlong publish_timestamp_ms, 121 jlong publish_timestamp_ms,
122 jfloat score); 122 jfloat score);
123 123
124 void OnMoreButtonShown(JNIEnv* env, 124 void OnMoreButtonShown(JNIEnv* env,
125 const base::android::JavaParamRef<jobject>& obj, 125 const base::android::JavaParamRef<jobject>& obj,
126 jint j_category_id, 126 jint j_category_id,
127 jint position); 127 jint position);
128 128
129 void OnMoreButtonClicked(JNIEnv* env, 129 void OnMoreButtonClicked(JNIEnv* env,
130 const base::android::JavaParamRef<jobject>& obj, 130 const base::android::JavaParamRef<jobject>& obj,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 // Used to notify the Java side when new snippets have been fetched. 167 // Used to notify the Java side when new snippets have been fetched.
168 base::android::ScopedJavaGlobalRef<jobject> observer_; 168 base::android::ScopedJavaGlobalRef<jobject> observer_;
169 169
170 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; 170 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); 172 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge);
173 }; 173 };
174 174
175 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 175 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698