Bug 984458 - c. Add skeletal NativeJSObject implementation; r=blassey

This commit is contained in:
Jim Chen
2014-04-01 15:16:54 -04:00
parent 019d2e2d90
commit 3addc5c50b
3 changed files with 175 additions and 0 deletions

View File

@@ -14,4 +14,22 @@ import org.mozilla.gecko.mozglue.JNITarget;
@JNITarget
public class NativeJSObject
{
private final NativeJSContainer mContainer;
protected NativeJSObject() {
mContainer = (NativeJSContainer)this;
}
/**
* Returns the JSON representation of this object.
*
* @throws NullPointerException
* If this JS object has been disposed
* @throws IllegalThreadStateException
* If not called on the thread this object is attached to
* @throws UnsupportedOperationException
* If an internal JSAPI call failed
*/
@Override
public native String toString();
}