mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add target disposition and user gesture parameters to CefLifeSpanHandler::OnBeforePopup (issue #1525).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@2053 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -20,9 +20,11 @@
|
||||
|
||||
bool CefLifeSpanHandlerCToCpp::OnBeforePopup(CefRefPtr<CefBrowser> browser,
|
||||
CefRefPtr<CefFrame> frame, const CefString& target_url,
|
||||
const CefString& target_frame_name, const CefPopupFeatures& popupFeatures,
|
||||
CefWindowInfo& windowInfo, CefRefPtr<CefClient>& client,
|
||||
CefBrowserSettings& settings, bool* no_javascript_access) {
|
||||
const CefString& target_frame_name,
|
||||
WindowOpenDisposition target_disposition, bool user_gesture,
|
||||
const CefPopupFeatures& popupFeatures, CefWindowInfo& windowInfo,
|
||||
CefRefPtr<CefClient>& client, CefBrowserSettings& settings,
|
||||
bool* no_javascript_access) {
|
||||
if (CEF_MEMBER_MISSING(struct_, on_before_popup))
|
||||
return false;
|
||||
|
||||
@@ -56,6 +58,8 @@ bool CefLifeSpanHandlerCToCpp::OnBeforePopup(CefRefPtr<CefBrowser> browser,
|
||||
CefFrameCppToC::Wrap(frame),
|
||||
target_url.GetStruct(),
|
||||
target_frame_name.GetStruct(),
|
||||
target_disposition,
|
||||
user_gesture,
|
||||
&popupFeatures,
|
||||
&windowInfo,
|
||||
&clientStruct,
|
||||
|
Reference in New Issue
Block a user