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

Unified Diff: jni/JniJsValue.h

Issue 6606493159784448: New JNI bindings (Closed)
Patch Set: Removed TODO from AppInfo. Created April 11, 2014, 1:28 p.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 | « jni/JniJsEngine.cpp ('k') | jni/JniJsValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jni/JniJsValue.h
diff --git a/jni/AndroidLogSystem.h b/jni/JniJsValue.h
similarity index 64%
copy from jni/AndroidLogSystem.h
copy to jni/JniJsValue.h
index a52bf7c876ec5386d99dab0b5aa21f16a7cc087e..43fc200eba7b3a4d89c7f9e5698db39a83ad023f 100644
--- a/jni/AndroidLogSystem.h
+++ b/jni/JniJsValue.h
@@ -15,16 +15,18 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef ADBLOCK_PLUS_ANDROID_LOG_SYSTEM_H
-#define ADBLOCK_PLUS_ANDROID_LOG_SYSTEM_H
+#ifndef JNIJSVALUE_H
+#define JNIJSVALUE_H
-#include <AdblockPlus/LogSystem.h>
+#include <jni.h>
+#include <AdblockPlus/JsValue.h>
-class AndroidLogSystem : public AdblockPlus::LogSystem
-{
-public:
- void operator()(LogLevel logLevel, const std::string& message,
- const std::string& source);
-};
+jobject NewJniJsValue(JNIEnv* env, const AdblockPlus::JsValuePtr& jsValue);
-#endif
+jobject JniJsValueListToArrayList(JNIEnv* env, AdblockPlus::JsValueList& list);
+
+AdblockPlus::JsValue* JniGetJsValue(jlong ptr);
+
+AdblockPlus::JsValuePtr& JniGetJsValuePtr(jlong ptr);
+
+#endif /* JNIJSVALUE_H */
« no previous file with comments | « jni/JniJsEngine.cpp ('k') | jni/JniJsValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld