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

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

Issue 2340333002: 📰 Make status cards swipable (Closed)
Patch Set: fix nit Created 4 years, 3 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 JNIEnv* env, 55 JNIEnv* env,
56 const base::android::JavaParamRef<jobject>& obj, 56 const base::android::JavaParamRef<jobject>& obj,
57 const base::android::JavaParamRef<jstring>& suggestion_id, 57 const base::android::JavaParamRef<jstring>& suggestion_id,
58 const base::android::JavaParamRef<jobject>& j_callback); 58 const base::android::JavaParamRef<jobject>& j_callback);
59 59
60 void DismissSuggestion( 60 void DismissSuggestion(
61 JNIEnv* env, 61 JNIEnv* env,
62 const base::android::JavaParamRef<jobject>& obj, 62 const base::android::JavaParamRef<jobject>& obj,
63 const base::android::JavaParamRef<jstring>& suggestion_id); 63 const base::android::JavaParamRef<jstring>& suggestion_id);
64 64
65 void DismissCategory(JNIEnv* env,
66 const base::android::JavaParamRef<jobject>& obj,
67 jint category);
68
65 // Checks if the URL has been visited. The callback will not be called 69 // Checks if the URL has been visited. The callback will not be called
66 // synchronously. 70 // synchronously.
67 void GetURLVisited(JNIEnv* env, 71 void GetURLVisited(JNIEnv* env,
68 const base::android::JavaParamRef<jobject>& obj, 72 const base::android::JavaParamRef<jobject>& obj,
69 const base::android::JavaParamRef<jobject>& callback, 73 const base::android::JavaParamRef<jobject>& callback,
70 const base::android::JavaParamRef<jstring>& jurl); 74 const base::android::JavaParamRef<jstring>& jurl);
71 75
72 void OnPageShown( 76 void OnPageShown(
73 JNIEnv* env, 77 JNIEnv* env,
74 const base::android::JavaParamRef<jobject>& obj, 78 const base::android::JavaParamRef<jobject>& obj,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 143
140 // Used to notify the Java side when new snippets have been fetched. 144 // Used to notify the Java side when new snippets have been fetched.
141 base::android::ScopedJavaGlobalRef<jobject> observer_; 145 base::android::ScopedJavaGlobalRef<jobject> observer_;
142 146
143 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_; 147 base::WeakPtrFactory<NTPSnippetsBridge> weak_ptr_factory_;
144 148
145 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge); 149 DISALLOW_COPY_AND_ASSIGN(NTPSnippetsBridge);
146 }; 150 };
147 151
148 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_ 152 #endif // CHROME_BROWSER_ANDROID_NTP_NTP_SNIPPETS_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698