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

Unified Diff: compiled/filter/Filter.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: Abstracted away all Emscripten dependencies Created May 3, 2017, 11:54 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/filter/ElemHideBase.h ('k') | compiled/filter/InvalidFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/filter/Filter.h
===================================================================
--- a/compiled/filter/Filter.h
+++ b/compiled/filter/Filter.h
@@ -17,16 +17,17 @@
#pragma once
#include <vector>
#include "../String.h"
#include "../intrusive_ptr.h"
#include "../debug.h"
+#include "../bindings/runtime.h"
class Filter : public ref_counted
{
protected:
OwnedString mText;
public:
enum Type
@@ -42,19 +43,19 @@ public:
VALUE_COUNT = 8
};
explicit Filter(Type type, const String& text);
~Filter();
Type mType;
- EMSCRIPTEN_KEEPALIVE const String& GetText() const
+ BINDINGS_EXPORTED const String& GetText() const
{
return mText;
}
- EMSCRIPTEN_KEEPALIVE OwnedString Serialize() const;
+ BINDINGS_EXPORTED OwnedString Serialize() const;
- static EMSCRIPTEN_KEEPALIVE Filter* FromText(DependentString& text);
+ static BINDINGS_EXPORTED Filter* FromText(DependentString& text);
};
typedef intrusive_ptr<Filter> FilterPtr;
« no previous file with comments | « compiled/filter/ElemHideBase.h ('k') | compiled/filter/InvalidFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld