FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/src/client_handler/lifespan_handler.cpp at master · linesight/cefpython · GitHub
linesight
/
cefpython
Public
forked from
cztomczak/cefpython
Notifications
You must be signed in to change notification settings
Fork
2
Star
11
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
src
/
client_handler
/
lifespan_handler.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
62 lines (53 loc) · 2.25 KB
Breadcrumbs
cefpython
/
src
/
client_handler
/
lifespan_handler.cpp
Copy path
File metadata and controls
62 lines (53 loc) · 2.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
//
Copyright (c) 2012 CEF Python, see the Authors file.
//
All rights reserved. Licensed under BSD 3-clause license.
//
Project website: https://github.com/cztomczak/cefpython
#
include
"
lifespan_handler.h
"
#
if
defined(OS_WIN)
#
include
"
dpi_aware.h
"
#
endif
#
include
"
include/base/cef_logging.h
"
bool
LifespanHandler::OnBeforePopup
(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
const
CefString& target_url,
const
CefString& target_frame_name,
WindowOpenDisposition target_disposition,
bool
user_gesture,
const
CefPopupFeatures& popupFeatures,
CefWindowInfo& windowInfo,
CefRefPtr<CefClient>& client,
CefBrowserSettings& settings,
CefRefPtr<CefDictionaryValue>& extra_info,
bool
* no_javascript_access)
{
REQUIRE_UI_THREAD
();
//
Note: passing popupFeatures is not yet supported.
const
int
popupFeaturesNotImpl =
0
;
return
LifespanHandler_OnBeforePopup
(browser, frame, target_url,
target_frame_name, target_disposition, user_gesture,
popupFeaturesNotImpl, windowInfo, client, settings,
extra_info, no_javascript_access);
}
void
LifespanHandler::OnAfterCreated
(CefRefPtr<CefBrowser> browser)
{
REQUIRE_UI_THREAD
();
#
if
defined(OS_WIN)
//
High DPI support.
CefString auto_zooming =
ApplicationSettings_GetString
(
"
auto_zooming
"
);
if
(!auto_zooming.
empty
()) {
LOG
(
INFO
) <<
"
[Browser process] OnAfterCreated(): auto_zooming =
"
<< auto_zooming.
ToString
();
SetBrowserDpiSettings
(browser, auto_zooming);
}
#
endif
//
OS_WIN
LifespanHandler_OnAfterCreated
(browser);
}
bool
LifespanHandler::DoClose
(CefRefPtr<CefBrowser> browser)
{
REQUIRE_UI_THREAD
();
return
LifespanHandler_DoClose
(browser);
}
void
LifespanHandler::OnBeforeClose
(CefRefPtr<CefBrowser> browser)
{
REQUIRE_UI_THREAD
();
LifespanHandler_OnBeforeClose
(browser);
}
Back
|
FazBrowse Home
|
New Git URL