/** * Sends the web view handle to JavaScript. */ void HybridMoblet::sendWebViewHandleToJavaScript() { char buffer[1024]; MAWidgetHandle widget = mWebView->getWidgetHandle(); //We use a special callback for widget creation sprintf( buffer, "mosync.nativeui.setWebViewHandle('%d')", widget); callJS(buffer); }
/** * Sends the Device Screen size to JavaScript. */ void HybridMoblet::sendDeviceScreenSizeToJavaScript() { MAExtent scrSize = maGetScrSize(); int width = EXTENT_X(scrSize); int height = EXTENT_Y(scrSize); char buf[512]; sprintf( buf, "mosync.nativeui.setScreenSize(%d,%d)", width, height); callJS(buf); }
void KateKJSWrapperConfigPage::reset() { callJS(m_plugin->m_part,m_pageObject,"reset"); }
void KateKJSWrapperConfigPage::defaults() { callJS(m_plugin->m_part,m_pageObject,"defaults"); }
void KateKJSWrapperConfigPage::apply() { callJS(m_plugin->m_part,m_pageObject,"apply"); }