mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Merge revision 698 and 699 changes:
- Add persistent HTML5 application cache support (issue #543). - Standardize the approach for creating new directories. - Allow empty message parameters passed to CefJSDialogHandler. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1025@700 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -33,10 +33,7 @@ int CEF_CALLBACK jsdialog_handler_on_jsalert(
|
||||
DCHECK(frame);
|
||||
if (!frame)
|
||||
return 0;
|
||||
// Verify param: message; type: string_byref_const
|
||||
DCHECK(message);
|
||||
if (!message)
|
||||
return 0;
|
||||
// Unverified params: message
|
||||
|
||||
// Execute
|
||||
bool _retval = CefJSDialogHandlerCppToC::Get(self)->OnJSAlert(
|
||||
@ -64,14 +61,11 @@ int CEF_CALLBACK jsdialog_handler_on_jsconfirm(
|
||||
DCHECK(frame);
|
||||
if (!frame)
|
||||
return 0;
|
||||
// Verify param: message; type: string_byref_const
|
||||
DCHECK(message);
|
||||
if (!message)
|
||||
return 0;
|
||||
// Verify param: retval; type: bool_byref
|
||||
DCHECK(retval);
|
||||
if (!retval)
|
||||
return 0;
|
||||
// Unverified params: message
|
||||
|
||||
// Translate param: retval; type: bool_byref
|
||||
bool retvalBool = (retval && *retval)?true:false;
|
||||
@ -108,14 +102,6 @@ int CEF_CALLBACK jsdialog_handler_on_jsprompt(
|
||||
DCHECK(frame);
|
||||
if (!frame)
|
||||
return 0;
|
||||
// Verify param: message; type: string_byref_const
|
||||
DCHECK(message);
|
||||
if (!message)
|
||||
return 0;
|
||||
// Verify param: defaultValue; type: string_byref_const
|
||||
DCHECK(defaultValue);
|
||||
if (!defaultValue)
|
||||
return 0;
|
||||
// Verify param: retval; type: bool_byref
|
||||
DCHECK(retval);
|
||||
if (!retval)
|
||||
@ -124,6 +110,7 @@ int CEF_CALLBACK jsdialog_handler_on_jsprompt(
|
||||
DCHECK(result);
|
||||
if (!result)
|
||||
return 0;
|
||||
// Unverified params: message, defaultValue
|
||||
|
||||
// Translate param: retval; type: bool_byref
|
||||
bool retvalBool = (retval && *retval)?true:false;
|
||||
|
Reference in New Issue
Block a user