From c79fb7f5fe1e697dca3a501570daf30e794ceaeb Mon Sep 17 00:00:00 2001 From: Sheen Tian Date: Thu, 28 Mar 2024 22:30:59 +0800 Subject: [PATCH] feat(macro): correct CEF version detect macro --- include/CefViewBrowserClient.h | 2 +- .../CefBrowserApp/CefViewBrowserClient_RequestHandler.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/CefViewBrowserClient.h b/include/CefViewBrowserClient.h index 0cf8e99..e332b55 100644 --- a/include/CefViewBrowserClient.h +++ b/include/CefViewBrowserClient.h @@ -372,7 +372,7 @@ class CefViewBrowserClient const CefString& target_url, CefRequestHandler::WindowOpenDisposition target_disposition, bool user_gesture) override; -#if CEF_VERSION_MAJOR > 91 && CEF_VERSION_MAJOR < 110 +#if CEF_VERSION_MAJOR > 91 && CEF_VERSION_MAJOR < 109 virtual bool OnQuotaRequest(CefRefPtr browser, const CefString& origin_url, int64 new_size, diff --git a/src/CefView/CefBrowserApp/CefViewBrowserClient_RequestHandler.cpp b/src/CefView/CefBrowserApp/CefViewBrowserClient_RequestHandler.cpp index 361cdc7..d82d1c7 100644 --- a/src/CefView/CefBrowserApp/CefViewBrowserClient_RequestHandler.cpp +++ b/src/CefView/CefBrowserApp/CefViewBrowserClient_RequestHandler.cpp @@ -43,7 +43,7 @@ CefViewBrowserClient::OnOpenURLFromTab(CefRefPtr browser, return false; // return true to cancel this navigation. } -#if CEF_VERSION_MAJOR > 91 && CEF_VERSION_MAJOR < 110 +#if CEF_VERSION_MAJOR > 91 && CEF_VERSION_MAJOR < 109 bool CefViewBrowserClient::OnQuotaRequest(CefRefPtr browser, const CefString& origin_url,