Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: libadblockplus-android/jni/JniNotification.cpp

Issue 29536629: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Left Patch Set: Created Sept. 5, 2017, 12:59 p.m.
Right Patch Set: address comment Created Sept. 8, 2017, 12:20 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « libadblockplus-android/jni/JniJsEngine.cpp ('k') | libadblockplus-android/jni/JniPlatform.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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
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
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
LEFTRIGHT

Powered by Google App Engine
This is Rietveld