ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFUIWebView.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFUIWebView_h_
7#define _ZFI_ZFProtocolZFUIWebView_h_
8
9#include "ZFCore/ZFProtocol.h"
12
17public:
21 virtual void *nativeWebViewCreate(
22 ZF_IN ZFUIWebView *webView
23 , ZF_OUT zfbool &nativeImplViewRequireVirtualIndex
29 ZF_IN ZFUIWebView *webView
30 , ZF_IN void *nativeWebView
32
36 virtual void loadUrl(
37 ZF_IN ZFUIWebView *webView
38 , ZF_IN const zfchar *url
43 virtual void loadHtml(
44 ZF_IN ZFUIWebView *webView
45 , ZF_IN const zfchar *html
46 , ZF_IN_OPT const zfchar *baseUrl = zfnull
51 virtual void reload(ZF_IN ZFUIWebView *webView) zfpurevirtual;
55 virtual void loadStop(ZF_IN ZFUIWebView *webView) zfpurevirtual;
56
60 virtual void goBack(ZF_IN ZFUIWebView *webView) zfpurevirtual;
64 virtual void goForward(ZF_IN ZFUIWebView *webView) zfpurevirtual;
65
78
79 // ============================================================
80 // callbacks that implementations must notify
81public:
87 webView->_ZFP_ZFUIWebView_notifyWebLoadStateOnUpdate();
88 }
90
92#endif // #ifndef _ZFI_ZFProtocolZFUIWebView_h_
93
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
#define ZFLIB_ZFUIWebKit
used to export symbols
Definition ZFUIWebKitDef.h:17
virtual void goForward(ZFUIWebView *webView)=0
see ZFUIWebView::goForward
virtual void * nativeWebViewCreate(ZFUIWebView *webView, zfbool &nativeImplViewRequireVirtualIndex)=0
create native web view
virtual void loadHtml(ZFUIWebView *webView, const zfchar *html, const zfchar *baseUrl=zft_zfnull)=0
see ZFUIWebView::loadHtml
virtual void goBack(ZFUIWebView *webView)=0
see ZFUIWebView::goBack
virtual zfbool goBackAvailable(ZFUIWebView *webView)=0
see ZFUIWebView::goBackAvailable
virtual zfbool loading(ZFUIWebView *webView)=0
see ZFUIWebView::loading
virtual void loadUrl(ZFUIWebView *webView, const zfchar *url)=0
see ZFUIWebView::loadUrl
virtual void loadStop(ZFUIWebView *webView)=0
see ZFUIWebView::loadStop
virtual zfbool goForwardAvailable(ZFUIWebView *webView)=0
see ZFUIWebView::goForwardAvailable
virtual void nativeWebViewDestroy(ZFUIWebView *webView, void *nativeWebView)=0
destroy native web view
virtual void reload(ZFUIWebView *webView)=0
see ZFUIWebView::reload
void notifyWebLoadStateOnUpdate(ZFUIWebView *webView)
implementations must notify when web load start or stop (both success or fail)
Definition ZFProtocolZFUIWebView.h:86
web view
Definition ZFUIWebView.h:17