Add buttonLabel param to showOpen/showSave dialogs
This commit is contained in:
parent
88f3c34412
commit
40c531737d
10 changed files with 67 additions and 19 deletions
|
@ -84,6 +84,7 @@ void WebDialogHelper::RunFileChooser(content::WebContents* web_contents,
|
|||
base::FilePath path;
|
||||
if (file_dialog::ShowSaveDialog(window_,
|
||||
base::UTF16ToUTF8(params.title),
|
||||
"Save",
|
||||
params.default_file_name,
|
||||
filters,
|
||||
&path)) {
|
||||
|
@ -114,6 +115,7 @@ void WebDialogHelper::RunFileChooser(content::WebContents* web_contents,
|
|||
prefs::kSelectFileLastDirectory).Append(params.default_file_name);
|
||||
if (file_dialog::ShowOpenDialog(window_,
|
||||
base::UTF16ToUTF8(params.title),
|
||||
"Open",
|
||||
default_file_path,
|
||||
filters,
|
||||
flags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue