mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix display of file chooser dialog. Signature of WebViewClient::runFileChooser has changed.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@78 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -77,6 +77,7 @@ using WebKit::WebDataSource;
|
||||
using WebKit::WebDragData;
|
||||
using WebKit::WebDragOperationsMask;
|
||||
using WebKit::WebEditingAction;
|
||||
using WebKit::WebFileChooserParams;
|
||||
using WebKit::WebFormElement;
|
||||
using WebKit::WebFrame;
|
||||
using WebKit::WebHistoryItem;
|
||||
@@ -274,14 +275,13 @@ bool BrowserWebViewDelegate::handleCurrentKeyboardEvent() {
|
||||
}
|
||||
|
||||
bool BrowserWebViewDelegate::runFileChooser(
|
||||
bool multi_select, const WebKit::WebString& title,
|
||||
const WebKit::WebString& initial_value,
|
||||
const WebFileChooserParams& params,
|
||||
WebKit::WebFileChooserCompletion* chooser_completion) {
|
||||
// Support file open dialog.
|
||||
std::vector<FilePath> file_names;
|
||||
|
||||
if(!ShowFileChooser(file_names, multi_select, title,
|
||||
webkit_glue::WebStringToFilePath(initial_value))) {
|
||||
if(!ShowFileChooser(file_names, params.multiSelect, params.title,
|
||||
webkit_glue::WebStringToFilePath(params.initialValue))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user