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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 break; | 60 break; |
61 case AdblockPlus::Filter::TYPE_COMMENT: | 61 case AdblockPlus::Filter::TYPE_COMMENT: |
62 enumName = "COMMENT"; | 62 enumName = "COMMENT"; |
63 break; | 63 break; |
64 case AdblockPlus::Filter::TYPE_ELEMHIDE: | 64 case AdblockPlus::Filter::TYPE_ELEMHIDE: |
65 enumName = "ELEMHIDE"; | 65 enumName = "ELEMHIDE"; |
66 break; | 66 break; |
67 case AdblockPlus::Filter::TYPE_ELEMHIDE_EXCEPTION: | 67 case AdblockPlus::Filter::TYPE_ELEMHIDE_EXCEPTION: |
68 enumName = "ELEMHIDE_EXCEPTION"; | 68 enumName = "ELEMHIDE_EXCEPTION"; |
69 break; | 69 break; |
| 70 case AdblockPlus::Filter::TYPE_TYPE_ELEMHIDE_EMULATION: |
| 71 enumName = "ELEMHIDE_EMULATION"; |
| 72 break; |
70 case AdblockPlus::Filter::TYPE_EXCEPTION: | 73 case AdblockPlus::Filter::TYPE_EXCEPTION: |
71 enumName = "EXCEPTION"; | 74 enumName = "EXCEPTION"; |
72 break; | 75 break; |
73 default: | 76 default: |
74 enumName = "INVALID"; | 77 enumName = "INVALID"; |
75 break; | 78 break; |
76 } | 79 } |
77 | 80 |
78 jfieldID enumField = env->GetStaticFieldID(filterEnumClass->Get(), enumName, T
YP("Filter$Type")); | 81 jfieldID enumField = env->GetStaticFieldID(filterEnumClass->Get(), enumName, T
YP("Filter$Type")); |
79 return env->GetStaticObjectField(filterEnumClass->Get(), enumField); | 82 return env->GetStaticObjectField(filterEnumClass->Get(), enumField); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 { (char*)"isListed", (char*)"(J)Z", (void*)JniIsListed }, | 127 { (char*)"isListed", (char*)"(J)Z", (void*)JniIsListed }, |
125 { (char*)"addToList", (char*)"(J)V", (void*)JniAddToList }, | 128 { (char*)"addToList", (char*)"(J)V", (void*)JniAddToList }, |
126 { (char*)"removeFromList", (char*)"(J)V", (void*)JniRemoveFromList }, | 129 { (char*)"removeFromList", (char*)"(J)V", (void*)JniRemoveFromList }, |
127 { (char*)"operatorEquals", (char*)"(JJ)Z", (void*)JniOperatorEquals } | 130 { (char*)"operatorEquals", (char*)"(JJ)Z", (void*)JniOperatorEquals } |
128 }; | 131 }; |
129 | 132 |
130 extern "C" JNIEXPORT void JNICALL Java_org_adblockplus_libadblockplus_Filter_reg
isterNatives(JNIEnv *env, jclass clazz) | 133 extern "C" JNIEXPORT void JNICALL Java_org_adblockplus_libadblockplus_Filter_reg
isterNatives(JNIEnv *env, jclass clazz) |
131 { | 134 { |
132 env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(methods[0])); | 135 env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(methods[0])); |
133 } | 136 } |
LEFT | RIGHT |