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

Side by Side Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/Filter.java

Issue 29536629: Issue 5556 - Update to use libadblockplus revision hg:566f64c8a2a8 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
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:
View unified diff | Download patch
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-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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 if (!(o instanceof Filter)) 62 if (!(o instanceof Filter))
63 { 63 {
64 return false; 64 return false;
65 } 65 }
66 66
67 return operatorEquals(this.ptr, ((Filter)o).ptr); 67 return operatorEquals(this.ptr, ((Filter)o).ptr);
68 } 68 }
69 69
70 public static enum Type 70 public static enum Type
71 { 71 {
72 BLOCKING, EXCEPTION, ELEMHIDE, ELEMHIDE_EXCEPTION, COMMENT, INVALID; 72 BLOCKING, EXCEPTION, ELEMHIDE, ELEMHIDE_EXCEPTION, ELEMHIDE_EMULATION,
73 COMMENT, INVALID;
73 } 74 }
74 75
75 private final static native void registerNatives(); 76 private final static native void registerNatives();
76 77
77 private final static native Type getType(long ptr); 78 private final static native Type getType(long ptr);
78 79
79 private final static native boolean isListed(long ptr); 80 private final static native boolean isListed(long ptr);
80 81
81 private final static native void addToList(long ptr); 82 private final static native void addToList(long ptr);
82 83
83 private final static native void removeFromList(long ptr); 84 private final static native void removeFromList(long ptr);
84 85
85 private final static native boolean operatorEquals(long ptr, long other); 86 private final static native boolean operatorEquals(long ptr, long other);
86 } 87 }
OLDNEW

Powered by Google App Engine
This is Rietveld