-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathwebview_host.h
More file actions
33 lines (23 loc) · 774 Bytes
/
Copy pathwebview_host.h
File metadata and controls
33 lines (23 loc) · 774 Bytes
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
#pragma once
#include "base/memory/ref_counted.h"
#include "edgeview_data.h"
#include "util.h"
namespace edgeview {
struct BrowserData;
class EdgeWidgetHost : public base::RefCounted<EdgeWidgetHost> {
public:
EdgeWidgetHost(base::WeakPtr<BrowserData> parent, HWND hParent, RECT rtRect);
~EdgeWidgetHost();
EdgeWidgetHost(const EdgeWidgetHost&) = delete;
EdgeWidgetHost& operator=(const EdgeWidgetHost&) = delete;
HWND GetHandle() const { return base_window; }
void OnSize();
void OnFocus();
private:
void RegisterWidgetClass();
static LRESULT CALLBACK MainWndProc(HWND hWnd, UINT message, WPARAM wParam,
LPARAM lParam);
HWND base_window;
base::WeakPtr<BrowserData> webview;
};
} // namespace edgeview