int /*long*/ webkit_window_object_cleared (int /*long*/ web_view, int /*long*/ frame, int /*long*/ context, int /*long*/ window_object) { int /*long*/ globalObject = WebKitGTK.JSContextGetGlobalObject (context); int /*long*/ externalObject = WebKitGTK.JSObjectMake (context, ExternalClass, webViewData); byte[] bytes = null; try { bytes = (OBJECTNAME_EXTERNAL + '\0').getBytes (CHARSET_UTF8); } catch (UnsupportedEncodingException e) { bytes = Converter.wcsToMbcs (null, OBJECTNAME_EXTERNAL, true); } int /*long*/ name = WebKitGTK.JSStringCreateWithUTF8CString (bytes); WebKitGTK.JSObjectSetProperty (context, globalObject, name, externalObject, 0, null); WebKitGTK.JSStringRelease (name); Iterator<BrowserFunction> elements = functions.values().iterator (); while (elements.hasNext ()) { BrowserFunction current = elements.next (); execute (current.functionString); } int /*long*/ mainFrame = WebKitGTK.webkit_web_view_get_main_frame (webView); boolean top = mainFrame == frame; addEventHandlers (web_view, top); return 0; }
long /*int*/ webkit_window_object_cleared (long /*int*/ web_view, long /*int*/ frame, long /*int*/ context, long /*int*/ window_object) { long /*int*/ globalObject = WebKitGTK.JSContextGetGlobalObject (context); long /*int*/ externalObject = WebKitGTK.JSObjectMake (context, ExternalClass, webViewData); byte[] bytes = null; try { bytes = (OBJECTNAME_EXTERNAL + '\0').getBytes (CHARSET_UTF8); } catch (UnsupportedEncodingException e) { bytes = Converter.wcsToMbcs (null, OBJECTNAME_EXTERNAL, true); } long /*int*/ name = WebKitGTK.JSStringCreateWithUTF8CString (bytes); WebKitGTK.JSObjectSetProperty (context, globalObject, name, externalObject, 0, null); WebKitGTK.JSStringRelease (name); Iterator<BrowserFunction> elements = functions.values().iterator (); while (elements.hasNext ()) { BrowserFunction current = elements.next (); execute (current.functionString); } long /*int*/ mainFrame = WebKitGTK.webkit_web_view_get_main_frame (webView); boolean top = mainFrame == frame; addEventHandlers (web_view, top); return 0; }
int /*long*/ webkit_window_object_cleared (int /*long*/ web_view, int /*long*/ frame, int /*long*/ context, int /*long*/ window_object) { int /*long*/ globalObject = WebKitGTK.JSContextGetGlobalObject (context); int /*long*/ externalObject = WebKitGTK.JSObjectMake (context, ExternalClass, webViewData); byte[] bytes = null; try { bytes = (OBJECTNAME_EXTERNAL + '\0').getBytes (CHARSET_UTF8); } catch (UnsupportedEncodingException e) { bytes = Converter.wcsToMbcs (null, OBJECTNAME_EXTERNAL, true); } int /*long*/ name = WebKitGTK.JSStringCreateWithUTF8CString (bytes); WebKitGTK.JSObjectSetProperty (context, globalObject, name, externalObject, 0, null); WebKitGTK.JSStringRelease (name); Iterator<BrowserFunction> elements = functions.values().iterator (); while (elements.hasNext ()) { BrowserFunction current = elements.next (); execute (current.functionString); } int /*long*/ mainFrame = WebKitGTK.webkit_web_view_get_main_frame (webView); boolean top = mainFrame == frame; addEventHandlers (web_view, top); return 0; }