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

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

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: rebase Created 3 years, 9 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 jint j_category_id, 59 jint j_category_id,
60 const base::android::JavaParamRef<jstring>& id_within_category, 60 const base::android::JavaParamRef<jstring>& id_within_category,
61 const base::android::JavaParamRef<jobject>& j_callback); 61 const base::android::JavaParamRef<jobject>& j_callback);
62 62
63 void Fetch( 63 void Fetch(
64 JNIEnv* env, 64 JNIEnv* env,
65 const base::android::JavaParamRef<jobject>& obj, 65 const base::android::JavaParamRef<jobject>& obj,
66 jint j_category_id, 66 jint j_category_id,
67 const base::android::JavaParamRef<jobjectArray>& j_displayed_suggestions); 67 const base::android::JavaParamRef<jobjectArray>& j_displayed_suggestions);
68 68
69 void ReloadSuggestions( 69 void ReloadSuggestions(JNIEnv* env,
70 JNIEnv* env, 70 const base::android::JavaParamRef<jobject>& obj);
71 const base::android::JavaParamRef<jobject>& obj);
72 71
73 void DismissSuggestion( 72 void DismissSuggestion(
74 JNIEnv* env, 73 JNIEnv* env,
75 const base::android::JavaParamRef<jobject>& obj, 74 const base::android::JavaParamRef<jobject>& obj,
76 const base::android::JavaParamRef<jstring>& jurl, 75 const base::android::JavaParamRef<jstring>& jurl,
77 jint global_position, 76 jint global_position,
78 jint j_category_id, 77 jint j_category_id,
79 jint position_in_category, 78 jint position_in_category,
80 const base::android::JavaParamRef<jstring>& id_within_category); 79 const base::android::JavaParamRef<jstring>& id_within_category);
81 80
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 168
170 // The Java SnippetsBridge. 169 // The Java SnippetsBridge.
171 base::android::ScopedJavaGlobalRef<jobject> bridge_; 170 base::android::ScopedJavaGlobalRef<jobject> bridge_;
172 171
173 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; 172 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_;
174 173
175 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); 174 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge);
176 }; 175 };
177 176
178 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 177 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/ntp/most_visited_sites_bridge.cc ('k') | chrome/browser/android/ntp/ntp_snippets_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698