LEFT | RIGHT |
(no file at all) | |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 { | 55 { |
56 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_CRITICAL: | 56 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_CRITICAL: |
57 enumName = "CRITICAL"; | 57 enumName = "CRITICAL"; |
58 break; | 58 break; |
59 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_INFORMATION: | 59 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_INFORMATION: |
60 enumName = "INFORMATION"; | 60 enumName = "INFORMATION"; |
61 break; | 61 break; |
62 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_QUESTION: | 62 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_QUESTION: |
63 enumName = "QUESTION"; | 63 enumName = "QUESTION"; |
64 break; | 64 break; |
| 65 case AdblockPlus::NotificationType::NOTIFICATION_TYPE_RELENTLESS: |
| 66 enumName = "RELENTLESS"; |
| 67 break; |
65 default: | 68 default: |
66 enumName = "INVALID"; | 69 enumName = "INVALID"; |
67 break; | 70 break; |
68 } | 71 } |
69 | 72 |
70 jfieldID enumField = env->GetStaticFieldID( | 73 jfieldID enumField = env->GetStaticFieldID( |
71 notificationEnumClass->Get(), | 74 notificationEnumClass->Get(), |
72 enumName, | 75 enumName, |
73 TYP("Notification$Type")); | 76 TYP("Notification$Type")); |
74 | 77 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 { (char*) "getTitle", (char*) "(J)Ljava/lang/String;", (void*) JniGetTitle }, | 112 { (char*) "getTitle", (char*) "(J)Ljava/lang/String;", (void*) JniGetTitle }, |
110 { (char*) "getType", (char*) "(J)" TYP("Notification$Type"), (void*) JniGetTyp
e } | 113 { (char*) "getType", (char*) "(J)" TYP("Notification$Type"), (void*) JniGetTyp
e } |
111 }; | 114 }; |
112 | 115 |
113 extern "C" JNIEXPORT void JNICALL Java_org_adblockplus_libadblockplus_Notificati
on_registerNatives( | 116 extern "C" JNIEXPORT void JNICALL Java_org_adblockplus_libadblockplus_Notificati
on_registerNatives( |
114 JNIEnv *env, jclass clazz) | 117 JNIEnv *env, jclass clazz) |
115 { | 118 { |
116 env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(methods[0])); | 119 env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(methods[0])); |
117 } | 120 } |
118 | 121 |
LEFT | RIGHT |