| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |