Sha256: be68be2fe9154d8557fe3695ef9caa1c6f6dc4a3a479a6859fb11640b75521c2

Contents?: true

Size: 1.1 KB

Versions: 13

Compression:

Stored size: 1.1 KB

Contents

/*
 *  RhoNativeViewManager.h
 *  rhorunner
 *
 *  Created by Dmitry Soldatenkov on 8/25/10.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef _RHO_NATIVE_VIEW_MANAGER_
#define _RHO_NATIVE_VIEW_MANAGER_


class NativeView {
public:
	// that function must return native object provided view functionality :
	// UIView* for iPhone
	// jobject for Android - jobect must be android.view.View class type
	// HWND for Windows Mobile 
	virtual void* getView() = 0;
	
	virtual void navigate(const char* url) = 0;
};

class NativeViewFactory {
public:
	virtual NativeView* getNativeView(const char* viewType) = 0;
	virtual void destroyNativeView(NativeView* nativeView) = 0;
};

class RhoNativeViewManager {
public: 
	static void registerViewType(const char* viewType, NativeViewFactory* factory);
	static void unregisterViewType(const char* viewType);

	// that function return native object used for display Web content :
	// UIWebView* for iPhone
	// jobject for Android - jobect is android.webkit.WebView class type
	// HWND for Windows Mobile 
	static void* getWebViewObject(int tab_index);
};

#endif

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rhodes-2.2.4.beta.1 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.3 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.3.beta.1 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.2 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.2.beta.1 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.1 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.1.beta.2 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.1.beta.1 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.0 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.0.beta.3 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.0.beta.2 platform/shared/common/RhoNativeViewManager.h
rhodes-2.2.0.beta.1 platform/shared/common/RhoNativeViewManager.h
rhodes-2.1.0 platform/shared/common/RhoNativeViewManager.h