List of usage examples for com.google.gwt.dev.shell.designtime ModuleSpace createNativeMethodInjector
public static String createNativeMethodInjector(String jsniSignature, String[] paramNames, String js)
From source file:com.google.gdt.eclipse.designer.moz.BrowserShellLinux32.java
License:Open Source License
protected final JsValue createAndInvoke(String name, String[] jsargs, String body, Object args) { String newScript = ModuleSpace.createNativeMethodInjector(name, jsargs, body); LowLevelMoz32/*64*/.executeScriptWithInfo(m_windowPrivate, newScript, "", 0); JsValueMoz32/*64*/ jsthis = new JsValueMoz32/*64*/(); jsthis.setNull();/*w w w. jav a2 s . c om*/ JsValueMoz32/*64*/ returnVal = new JsValueMoz32/*64*/(); LowLevelMoz32/*64*/.invoke(m_windowPrivate, name, jsthis.getJsRootedValue(), (int /*long*/[]) args, returnVal.getJsRootedValue()); return returnVal; }
From source file:com.google.gdt.eclipse.designer.moz.BrowserShellLinux64.java
License:Open Source License
protected final JsValue createAndInvoke(String name, String[] jsargs, String body, Object args) { String newScript = ModuleSpace.createNativeMethodInjector(name, jsargs, body); LowLevelMoz64.executeScriptWithInfo(m_windowPrivate, newScript, "", 0); JsValueMoz64 jsthis = new JsValueMoz64(); jsthis.setNull();/*ww w .j ava 2 s.co m*/ JsValueMoz64 returnVal = new JsValueMoz64(); LowLevelMoz64.invoke(m_windowPrivate, name, jsthis.getJsRootedValue(), (long[]) args, returnVal.getJsRootedValue()); return returnVal; }