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

Side by Side Diff: compiled/FilterNotifier.h

Issue 29425555: Issue 5201 - [emscripten] Replace EM_ASM calls by a custom JavaScript library (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created April 30, 2017, 6:54 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « compile ('k') | compiled/FilterNotifier.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-2017 eyeo GmbH 3 * Copyright (C) 2006-2017 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 printf(" [%i, 'subscription.disabled'],\n", Topic::SUBSCRIPTION_DISABLED); 53 printf(" [%i, 'subscription.disabled'],\n", Topic::SUBSCRIPTION_DISABLED);
54 printf(" [%i, 'subscription.fixedTitle'],\n", Topic::SUBSCRIPTION_FIXEDTITL E); 54 printf(" [%i, 'subscription.fixedTitle'],\n", Topic::SUBSCRIPTION_FIXEDTITL E);
55 printf(" [%i, 'subscription.homepage'],\n", Topic::SUBSCRIPTION_HOMEPAGE); 55 printf(" [%i, 'subscription.homepage'],\n", Topic::SUBSCRIPTION_HOMEPAGE);
56 printf(" [%i, 'subscription.lastCheck'],\n", Topic::SUBSCRIPTION_LASTCHECK) ; 56 printf(" [%i, 'subscription.lastCheck'],\n", Topic::SUBSCRIPTION_LASTCHECK) ;
57 printf(" [%i, 'subscription.lastDownload'],\n", Topic::SUBSCRIPTION_LASTDOW NLOAD); 57 printf(" [%i, 'subscription.lastDownload'],\n", Topic::SUBSCRIPTION_LASTDOW NLOAD);
58 printf(" [%i, 'subscription.downloadStatus'],\n", Topic::SUBSCRIPTION_DOWNL OADSTATUS); 58 printf(" [%i, 'subscription.downloadStatus'],\n", Topic::SUBSCRIPTION_DOWNL OADSTATUS);
59 printf(" [%i, 'subscription.errors'],\n", Topic::SUBSCRIPTION_ERRORS); 59 printf(" [%i, 'subscription.errors'],\n", Topic::SUBSCRIPTION_ERRORS);
60 printf("]);"); 60 printf("]);");
61 } 61 }
62 62
63 void FilterChange(Topic topic, Filter* filter); 63 extern "C" {
64 void SubscriptionChange(Topic topic, Subscription* subscription); 64 void JSNotifyFilterChange(Topic topic, Filter* filter);
65 void JSNotifySubscriptionChange(Topic topic,
66 Subscription* subscription);
67 }
68
69 inline void FilterChange(Topic topic, Filter* filter)
70 {
71 JSNotifyFilterChange(topic, filter);
72 }
73
74 inline void SubscriptionChange(Topic topic, Subscription* subscription)
75 {
76 JSNotifySubscriptionChange(topic, subscription);
77 }
65 } 78 }
OLDNEW
« no previous file with comments | « compile ('k') | compiled/FilterNotifier.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld