Esempio n. 1
0
/**
 * 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);
}
Esempio n. 2
0
/**
 * 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);
}
Esempio n. 3
0
void KateKJSWrapperConfigPage::reset()
{
	callJS(m_plugin->m_part,m_pageObject,"reset");
}
Esempio n. 4
0
void KateKJSWrapperConfigPage::defaults()
{
	callJS(m_plugin->m_part,m_pageObject,"defaults");
}
Esempio n. 5
0
void KateKJSWrapperConfigPage::apply()
{
	callJS(m_plugin->m_part,m_pageObject,"apply");
}