-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathCEFWebkit.h
More file actions
64 lines (51 loc) · 1.43 KB
/
Copy pathCEFWebkit.h
File metadata and controls
64 lines (51 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#pragma once
#ifndef UIWKEWEBKIT_H
#define UIWKEWEBKIT_H
#include "stdafx.h"
#include <vector>
#include "BrowserHandlers.h"
namespace DuiLib
{
class CCEFWebkitUI : public CControlUI
{
public:
CCEFWebkitUI(HWND hParent);
~CCEFWebkitUI();
virtual LPCTSTR GetClass() const;
virtual LPVOID GetInterface(LPCTSTR pstrName);
virtual void DoInit();
virtual void DoEvent(TEventUI& event);
virtual void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);
virtual void SetPos(RECT rc);
public:
void NewPage(CefString Url);
void DelPage(int nWebBrowserID);
void CloseAllPage();
BOOL IsClosed() const;
void ReFresh();
void ReFresh(int nWebBrowserID);
void ReLoad(int nWebBrowserID);
void LoadURL(int nWebBrowserID, CefString& strURL);
CefString GetFinalURL(int nWebBrowserID);
BOOL CanGoForward(int nWebBrowserID) ;
void GoForward(int nWebBrowserID);
BOOL CanGoBack(int nWebBrowserID);
void GoBack(int nWebBrowserID);
CefRefPtr<CefBrowser> GetBrowserByID(int nWebBrowserID);
int GetHitIndex() const;
void SetHitIndex(int idx);
public:
//virtual void SetInnerVisible(bool bVisible = true)
//{
// __super::SetInnerVisible(bVisible);
// ::ShowWindow(hWebKitBrowserWnd_, bVisible);
//}
public:
protected:
HWND hWebKitBrowserWnd_;
//std::vector<std::wstring> strURLs_;
CefRefPtr<CCefClientHandler> clientHandler_; //CefClient实现,用于处理Browser实例相关的回调
int nHitIndex_;
};
}
#endif