views: Add can_activate parameter to AddOverlayView

This commit is contained in:
Philipp Thiel
2023-10-25 11:16:57 +02:00
committed by Marshall Greenblatt
parent 9a45102db0
commit 5a9b8e2bc4
13 changed files with 50 additions and 32 deletions

View File

@ -349,10 +349,11 @@ CefRefPtr<CefImage> CefWindowImpl::GetWindowAppIcon() {
CefRefPtr<CefOverlayController> CefWindowImpl::AddOverlayView(
CefRefPtr<CefView> view,
cef_docking_mode_t docking_mode) {
cef_docking_mode_t docking_mode,
bool can_activate) {
CEF_REQUIRE_VALID_RETURN(nullptr);
if (root_view()) {
return root_view()->AddOverlayView(view, docking_mode);
return root_view()->AddOverlayView(view, docking_mode, can_activate);
}
return nullptr;
}