Skip to content

Commit cd27bfe

Browse files
committed
Merge pull request #13 from OsirisNL/cef_2526-1
Made code compatible with the CEF 2526 branch
2 parents 589c704 + 118af99 commit cd27bfe

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

shared/browser-client.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,21 @@ CefRefPtr<CefContextMenuHandler> BrowserClient::GetContextMenuHandler()
4646
}
4747

4848
bool BrowserClient::OnBeforePopup(CefRefPtr<CefBrowser> browser,
49-
CefRefPtr<CefFrame> frame, const CefString& target_url,
50-
const CefString& target_frame_name,
51-
const CefPopupFeatures& popupFeatures,
52-
CefWindowInfo& windowInfo, CefRefPtr<CefClient>& client,
53-
CefBrowserSettings& settings, bool* no_javascript_access)
49+
CefRefPtr<CefFrame> frame, const CefString& target_url,
50+
const CefString& target_frame_name,
51+
WindowOpenDisposition target_disposition,
52+
bool user_gesture,
53+
const CefPopupFeatures& popupFeatures,
54+
CefWindowInfo& windowInfo, CefRefPtr<CefClient>& client,
55+
CefBrowserSettings& settings,
56+
bool* no_javascript_access)
5457
{
5558
(void)browser;
5659
(void)frame;
5760
(void)target_url;
5861
(void)target_frame_name;
62+
(void)target_disposition;
63+
(void)user_gesture;
5964
(void)popupFeatures;
6065
(void)windowInfo;
6166
(void)client;

shared/browser-client.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class BrowserClient : public CefClient, public CefLifeSpanHandler,
4141
virtual bool OnBeforePopup(CefRefPtr<CefBrowser> browser,
4242
CefRefPtr<CefFrame> frame, const CefString& target_url,
4343
const CefString& target_frame_name,
44+
WindowOpenDisposition target_disposition,
45+
bool user_gesture,
4446
const CefPopupFeatures& popupFeatures,
4547
CefWindowInfo& windowInfo, CefRefPtr<CefClient>& client,
4648
CefBrowserSettings& settings,

shared/browser-scheme.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <cctype>
22
#include <algorithm>
3-
#include <include/cef_url.h>
3+
#include <include/cef_parser.h>
44

55
#include "browser-scheme.hpp"
66

@@ -35,7 +35,8 @@ bool BrowserSchemeHandler::ProcessRequest(CefRefPtr<CefRequest> request,
3535
CefParseURL(request->GetURL(), parts);
3636

3737
std::string path = CefString(&parts.path);
38-
path = CefURIDecode(path,true,cef_uri_unescape_rule_t::UU_SPACES);
38+
path = CefURIDecode(path, true, cef_uri_unescape_rule_t::UU_SPACES);
39+
path = CefURIDecode(path, true, cef_uri_unescape_rule_t::UU_NORMAL);
3940
#ifdef WIN32
4041
inputStream.open(path.erase(0,1), std::ifstream::binary);
4142
#else

0 commit comments

Comments
 (0)