| java.lang.Object com.google.gwt.dev.shell.moz.LowLevelMoz
LowLevelMoz | public class LowLevelMoz (Code) | | Various low-level helper methods for dealing with Gecko.
|
Inner Class :public interface DispatchMethod | |
Inner Class :public interface DispatchObject | |
Inner Class :interface ExternalFactory | |
Inner Class :interface ExternalObject | |
Method Summary | |
protected static ExternalObject | createExternalObjectForDOMWindow(int domWindow) Called from native code to create an external object for a particular
window. | public static void | executeScriptWithInfo(int scriptObject, String code, String file, int line) Executes JavaScript code, retaining file and line information. | public static synchronized void | init() | public static void | invoke(int scriptObject, String methodName, int jsthis, int[] jsargs, int retval) Invokes a method implemented in JavaScript. | public static void | raiseJavaScriptException() Call this to raise an exception in JavaScript before returning control. | public static void | registerExternalFactory(ExternalFactory externalFactory) BrowserWindows register here so that if their contained window gets a call
to window.external, the call can be routed correctly by nsIDOMWindow
pointer. | protected static void | trace(String s) Called from native code to do tracing. | public static void | unregisterExternalFactory(ExternalFactory externalFactory) Unregisters an existing registration. |
createExternalObjectForDOMWindow | protected static ExternalObject createExternalObjectForDOMWindow(int domWindow)(Code) | | Called from native code to create an external object for a particular
window.
Parameters: domWindow - an nsIDOMWindow to check against our ExternalFactories map a new ExternalObject |
executeScriptWithInfo | public static void executeScriptWithInfo(int scriptObject, String code, String file, int line)(Code) | | Executes JavaScript code, retaining file and line information.
Parameters: scriptObject - An opaque handle to the script frame window Parameters: code - The JavaScript code to execute Parameters: file - A file name associated with the code Parameters: line - A line number associated with the code. |
init | public static synchronized void init()(Code) | | |
invoke | public static void invoke(int scriptObject, String methodName, int jsthis, int[] jsargs, int retval)(Code) | | Invokes a method implemented in JavaScript.
Parameters: scriptObject - An opaque handle to the script frame window Parameters: methodName - the method name on jsthis to call Parameters: jsthis - A wrapped java object as a JsRootedValue pointer Parameters: jsargs - the arguments to pass to the method as JsRootedValue pointers throws: RuntimeException - if the invoke fails |
raiseJavaScriptException | public static void raiseJavaScriptException()(Code) | | Call this to raise an exception in JavaScript before returning control.
Currently, the JavaScript exception throw is always null.
|
registerExternalFactory | public static void registerExternalFactory(ExternalFactory externalFactory)(Code) | | BrowserWindows register here so that if their contained window gets a call
to window.external, the call can be routed correctly by nsIDOMWindow
pointer.
Parameters: externalFactory - the factory to register |
trace | protected static void trace(String s)(Code) | | Called from native code to do tracing.
Parameters: s - the string to trace |
unregisterExternalFactory | public static void unregisterExternalFactory(ExternalFactory externalFactory)(Code) | | Unregisters an existing registration.
Parameters: externalFactory - the factory to unregister |
|
|