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:
@ -32,10 +32,7 @@ bool CefJSDialogHandlerCToCpp::OnJSAlert(CefRefPtr<CefBrowser> browser,
|
||||
DCHECK(frame.get());
|
||||
if (!frame.get())
|
||||
return false;
|
||||
// Verify param: message; type: string_byref_const
|
||||
DCHECK(!message.empty());
|
||||
if (message.empty())
|
||||
return false;
|
||||
// Unverified params: message
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->on_jsalert(struct_,
|
||||
@ -62,10 +59,7 @@ bool CefJSDialogHandlerCToCpp::OnJSConfirm(CefRefPtr<CefBrowser> browser,
|
||||
DCHECK(frame.get());
|
||||
if (!frame.get())
|
||||
return false;
|
||||
// Verify param: message; type: string_byref_const
|
||||
DCHECK(!message.empty());
|
||||
if (message.empty())
|
||||
return false;
|
||||
// Unverified params: message
|
||||
|
||||
// Translate param: retval; type: bool_byref
|
||||
int retvalInt = retval;
|
||||
@ -100,14 +94,7 @@ bool CefJSDialogHandlerCToCpp::OnJSPrompt(CefRefPtr<CefBrowser> browser,
|
||||
DCHECK(frame.get());
|
||||
if (!frame.get())
|
||||
return false;
|
||||
// Verify param: message; type: string_byref_const
|
||||
DCHECK(!message.empty());
|
||||
if (message.empty())
|
||||
return false;
|
||||
// Verify param: defaultValue; type: string_byref_const
|
||||
DCHECK(!defaultValue.empty());
|
||||
if (defaultValue.empty())
|
||||
return false;
|
||||
// Unverified params: message, defaultValue
|
||||
|
||||
// Translate param: retval; type: bool_byref
|
||||
int retvalInt = retval;
|
||||
|
Reference in New Issue
Block a user