forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfocus_handler.cpp
More file actions
26 lines (19 loc) · 609 Bytes
/
focus_handler.cpp
File metadata and controls
26 lines (19 loc) · 609 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
// Copyright (c) 2016 CEF Python. See the Authors and License files.
#include "focus_handler.h"
void FocusHandler::OnTakeFocus(CefRefPtr<CefBrowser> browser,
bool next)
{
REQUIRE_UI_THREAD();
FocusHandler_OnTakeFocus(browser, next);
}
bool FocusHandler::OnSetFocus(CefRefPtr<CefBrowser> browser,
cef_focus_source_t source)
{
REQUIRE_UI_THREAD();
return FocusHandler_OnSetFocus(browser, source);
}
void FocusHandler::OnGotFocus(CefRefPtr<CefBrowser> browser)
{
REQUIRE_UI_THREAD();
FocusHandler_OnGotFocus(browser);
}