2 #include "2dengine/EventBinding.h" 3 #include "IHTMLRenderer.h" 9 class CHTMLBrowserManager;
10 class IHTMLBrowserManager;
35 bool setSize(
int widthIn,
int heightIn );
36 bool scrollByLines(
int linesIn );
37 bool setBackgroundColor(
const int redIn,
const int greenIn,
const int blueIn );
38 bool setEnabled(
bool enabledIn );
45 bool navigateTo(
const std::string uriIn );
47 bool canNavigateBack();
49 bool canNavigateForward();
50 bool navigateForward();
53 const unsigned char* grabBrowserWindow();
54 const unsigned char* getBrowserWindowPixels();
55 const int getBrowserWidth();
56 const int getBrowserHeight();
57 const int getBrowserDepth();
58 const int getBrowserRowSpan();
61 bool mouseDown(
int xPosIn,
int yPosIn );
62 bool mouseUp(
int xPosIn,
int yPosIn );
63 bool mouseMove(
int xPosIn,
int yPosIn );
64 bool keyPress(
int keyCodeIn );
65 bool focusBrowser(
bool focusBrowserIn );
68 void setNoFollowScheme( std::string schemeIn );
69 std::string getNoFollowScheme();
75 HRESULT CreateTexture(LPDIRECT3DTEXTURE9 *ppTexture);
79 HRESULT UpdateTexture(LPDIRECT3DTEXTURE9 pTexture);
89 LRESULT SendMessage( UINT Msg,WPARAM wParam,LPARAM lParam);
94 LRESULT PostMessage( UINT Msg,WPARAM wParam,LPARAM lParam);
97 const char* GetName();
100 void InvalidateDeviceObjects();
103 LPDIRECT3DTEXTURE9 GetTexture();
113 int m_nBrowserWindowId;
123 D3DFORMAT m_TextureFormat;
124 bool m_bUseDynamicTextures;
146 EM_onPageChanged = 0,
148 EM_onNavigateComplete,
150 EM_onStatusTextChange,
155 bool LoadHTMLManagerPlugin();
157 HRESULT InitDeviceObjects();
158 HRESULT RestoreDeviceObjects();
159 HRESULT InvalidateDeviceObjects();
160 HRESULT DeleteDeviceObjects();
169 void GarbageCollectAll();
173 bool init( std::string appBaseDirIn, std::string profileDirNameIn );
177 const std::string getVersion();
178 void setBrowserAgentId( std::string idIn );
180 int GetMaxWindowNum();
181 void SetMaxWindowNum(
int nNum);
188 CHTMLBrowser* createBrowserWindow(
const char* sFileName,
int browserWindowWidthIn,
int browserWindowHeightIn );
189 bool destroyBrowserWindow(
int browserWindowIdIn );
197 CHTMLBrowser* CreateGetBrowserWindow(
const char* sFileName);
206 void SetEventScript(
int nEvent,
const SimpleScript *script);
210 bool HasEvent(
int etype);
212 bool ActivateScript(
int etype,
const string &
code);
215 vector <CHTMLBrowser*> m_browsers;
string m_LastNavURL
the last url when navigateTo() is called.
Definition: HTMLBrowserManager.h:111
Definition: IHTMLRenderer.h:24
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: IHTMLRenderer.h:114
string m_filename
file name that the current texture is associated with.
Definition: HTMLBrowserManager.h:109
const string & GetLastNavURL()
the last url when navigateTo() is called.
Definition: HTMLBrowserManager.h:106
NPL interface of a XML Web service client proxy this class is implemented by ParaEngine.Net plug-in.
Definition: IHTMLRenderer.h:134
IHTMLBrowserManager * GetInterface()
get the main plugin interface
Definition: HTMLBrowserManager.h:200
an instance of HTML browser.
Definition: HTMLBrowserManager.h:15
Definition: EventBinding.h:42
HTMLBROWSER_EVENTS
HTML browser events.
Definition: HTMLBrowserManager.h:144
Definition: inftrees.h:24
LPDIRECT3DTEXTURE9 m_pTexture
dynamic d3d texture
Definition: HTMLBrowserManager.h:122
managing HTML browsers.
Definition: HTMLBrowserManager.h:137
bool m_bTextureUpdated
whether the texture has been update in this rendering frame.
Definition: HTMLBrowserManager.h:128
float m_fTimeOut
if a flash player is never used for this number of time, it will be deleted.
Definition: HTMLBrowserManager.h:117
float m_fLastUsedTime
last time the GetTexture() is called.
Definition: HTMLBrowserManager.h:119
int GetBrowserWindowID()
get window id
Definition: HTMLBrowserManager.h:83
bool m_bNeedUpdate
this flag is set to true every frame move. and set to false when the target image is saved to temp bu...
Definition: HTMLBrowserManager.h:131