Skip to content

Commit

Permalink
feat: adopted to CEF version 131+
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion committed Feb 14, 2025
1 parent bb1cbae commit dbc510c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/SetupCef.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if(NOT CUSTOM_CEF_SDK_DIR)
set(CEF_SDK_EXTRACTED_DIR "${CEF_SDK_WORKSPACE}/${CEF_SDK_PACKAGE_NAME}")
file(GLOB CEF_SDK_DIR "${CEF_SDK_EXTRACTED_DIR}")
else()
message("Custom Cef path: ${CUSTOM_CEF_SDK_DIR}")
message(STATUS "CUSTOM_CEF_SDK_DIR set: ${CUSTOM_CEF_SDK_DIR}")
set(CEF_SDK_DIR "${CUSTOM_CEF_SDK_DIR}")
endif()

Expand Down
3 changes: 3 additions & 0 deletions include/CefViewBrowserClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ class CefViewBrowserClient
virtual CefRefPtr<CefLifeSpanHandler> GetLifeSpanHandler() override;
virtual bool OnBeforePopup(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
#if CEF_VERSION_MAJOR > 131
int popup_id,
#endif
const CefString& target_url,
const CefString& target_frame_name,
CefLifeSpanHandler::WindowOpenDisposition target_disposition,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ CefViewBrowserClient::GetLifeSpanHandler()
bool
CefViewBrowserClient::OnBeforePopup(CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
#if CEF_VERSION_MAJOR > 131
int popup_id,
#endif
const CefString& target_url,
const CefString& target_frame_name,
CefLifeSpanHandler::WindowOpenDisposition target_disposition,
Expand Down

0 comments on commit dbc510c

Please sign in to comment.