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

Side by Side Diff: chrome/browser/notifications/notification_platform_bridge_android.h

Issue 2418153002: Hooking up Android N inline notification replies end-to-end (Closed)
Patch Set: Reformat getNotificationReply Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <map> 10 #include <map>
(...skipping 29 matching lines...) Expand all
40 // Called by the Java implementation when the notification has been clicked. 40 // Called by the Java implementation when the notification has been clicked.
41 void OnNotificationClicked( 41 void OnNotificationClicked(
42 JNIEnv* env, 42 JNIEnv* env,
43 const base::android::JavaParamRef<jobject>& java_object, 43 const base::android::JavaParamRef<jobject>& java_object,
44 const base::android::JavaParamRef<jstring>& java_notification_id, 44 const base::android::JavaParamRef<jstring>& java_notification_id,
45 const base::android::JavaParamRef<jstring>& java_origin, 45 const base::android::JavaParamRef<jstring>& java_origin,
46 const base::android::JavaParamRef<jstring>& java_profile_id, 46 const base::android::JavaParamRef<jstring>& java_profile_id,
47 jboolean incognito, 47 jboolean incognito,
48 const base::android::JavaParamRef<jstring>& java_tag, 48 const base::android::JavaParamRef<jstring>& java_tag,
49 const base::android::JavaParamRef<jstring>& java_webapk_package, 49 const base::android::JavaParamRef<jstring>& java_webapk_package,
50 jint action_index); 50 jint action_index,
51 const base::android::JavaParamRef<jstring>& java_reply);
51 52
52 // Called by the Java implementation when the notification has been closed. 53 // Called by the Java implementation when the notification has been closed.
53 void OnNotificationClosed( 54 void OnNotificationClosed(
54 JNIEnv* env, 55 JNIEnv* env,
55 const base::android::JavaParamRef<jobject>& java_object, 56 const base::android::JavaParamRef<jobject>& java_object,
56 const base::android::JavaParamRef<jstring>& java_notification_id, 57 const base::android::JavaParamRef<jstring>& java_notification_id,
57 const base::android::JavaParamRef<jstring>& java_origin, 58 const base::android::JavaParamRef<jstring>& java_origin,
58 const base::android::JavaParamRef<jstring>& java_profile_id, 59 const base::android::JavaParamRef<jstring>& java_profile_id,
59 jboolean incognito, 60 jboolean incognito,
60 const base::android::JavaParamRef<jstring>& java_tag, 61 const base::android::JavaParamRef<jstring>& java_tag,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // notifications are created by the content/ layer. 99 // notifications are created by the content/ layer.
99 std::map<std::string, RegeneratedNotificationInfo> 100 std::map<std::string, RegeneratedNotificationInfo>
100 regenerated_notification_infos_; 101 regenerated_notification_infos_;
101 102
102 base::android::ScopedJavaGlobalRef<jobject> java_object_; 103 base::android::ScopedJavaGlobalRef<jobject> java_object_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeAndroid); 105 DISALLOW_COPY_AND_ASSIGN(NotificationPlatformBridgeAndroid);
105 }; 106 };
106 107
107 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_ 108 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PLATFORM_BRIDGE_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698