mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add user_gesture parameter to OnBeforeBrowse (issue #1526)
This commit is contained in:
committed by
Marshall Greenblatt
parent
0677d0d9de
commit
4b33c17533
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=b4c3eec00b1889871f4e13ea05d7c00a12da1fa0$
|
||||
// $hash=02ebd75f0920edad6a23db997a57f28fc921b045$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/request_handler_cpptoc.h"
|
||||
@ -34,6 +34,7 @@ request_handler_on_before_browse(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
int user_gesture,
|
||||
int is_redirect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -56,7 +57,8 @@ request_handler_on_before_browse(struct _cef_request_handler_t* self,
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnBeforeBrowse(
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request), is_redirect ? true : false);
|
||||
CefRequestCToCpp::Wrap(request), user_gesture ? true : false,
|
||||
is_redirect ? true : false);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
|
Reference in New Issue
Block a user