Sha256: d64785145b4962a738a21c9b1ac40567cb079320a6272143373cef2a91d12102

Contents?: true

Size: 867 Bytes

Versions: 76

Compression:

Stored size: 867 Bytes

Contents

/*
 * webview.c
 *
 *  Created on: Mar 12, 2009
 *      Author: Anton
 */

#include "rhodesAppView.h"

#include "rhodes.pan"
#include "rhodes.hrh"
#include <eikenv.h>

#include "tcmalloc/rhomem.h"
#include <stdio.h>
#include <string.h>

void SendWindowEvent(TInt aEvent, const char* data)
{
	// Create a window server event
	RWsSession wsSession;
	TWsEvent event;

	if ( wsSession.Connect() == KErrNone )
	{
		// Set event data. eventType.data = KData;
		event.SetType(EEventUser + aEvent); // set event type
		event.SetTimeNow(); // set the event time
		event.SetHandle(wsSession.WsHandle()); // set window server handle
		
		if ( data )
			((char**)event.EventData())[0] = strdup(data);
		// Send the created event
		wsSession.SendEventToAllWindowGroups(event);
	}
}

extern "C" {

void webview_navigate(char* url){
	SendWindowEvent(ECmdAppNavigate2Url, url);
}

}

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.2.beta.1 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.8 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.7 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.6 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.5 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.4 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.3 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.1.beta.2 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.7 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.6 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.5 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.4 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.3 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.2 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-3.0.0.beta.1 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-2.4.1 platform/symbian/rhodes/src/webview/webview.cpp
rhodes-2.4.1.beta.1 platform/symbian/rhodes/src/webview/webview.cpp