forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfocus_handler.h
More file actions
23 lines (16 loc) · 577 Bytes
/
focus_handler.h
File metadata and controls
23 lines (16 loc) · 577 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2016 CEF Python. See the Authors and License files.
#include "common/cefpython_public_api.h"
#include "include/cef_focus_handler.h"
class FocusHandler : public CefFocusHandler
{
public:
FocusHandler(){}
virtual ~FocusHandler(){}
void OnTakeFocus(CefRefPtr<CefBrowser> browser,
bool next) override;
bool OnSetFocus(CefRefPtr<CefBrowser> browser,
cef_focus_source_t source) override;
void OnGotFocus(CefRefPtr<CefBrowser> browser) override;
private:
IMPLEMENT_REFCOUNTING(FocusHandler);
};