Expose CSSLayoutSetLogger to java

Summary: Expose CSSLayoutSetLogger to java

Reviewed By: astreet

Differential Revision: D4153502

fbshipit-source-id: 630909d9d0d36d94d7cd3027476ddb52668b8cc0
This commit is contained in:
Emil Sjolander
2016-11-11 08:08:28 -08:00
committed by Facebook Github Bot
parent aaa977f645
commit cd054ecf26
4 changed files with 100 additions and 0 deletions

View File

@@ -33,6 +33,12 @@ public class CSSNode implements CSSNodeAPI<CSSNode> {
* Get native instance count. Useful for testing only.
*/
static native int jni_CSSNodeGetInstanceCount();
static native void jni_CSSLog(int level, String message);
private static native void jni_CSSLayoutSetLogger(Object logger);
public static void setLogger(CSSLogger logger) {
jni_CSSLayoutSetLogger(logger);
}
private CSSNode mParent;
private List<CSSNode> mChildren;