mac: Make ShowOpenDialog able to be shown as sheet.
This commit is contained in:
parent
85d6588661
commit
a4262bc39d
3 changed files with 26 additions and 5 deletions
|
@ -124,7 +124,11 @@ v8::Handle<v8::Value> ShowOpenDialog(const v8::Arguments &args) {
|
|||
int properties = args[2]->IntegerValue();
|
||||
|
||||
std::vector<base::FilePath> paths;
|
||||
if (!file_dialog::ShowOpenDialog(title, default_path, properties, &paths))
|
||||
if (!file_dialog::ShowOpenDialog(NULL,
|
||||
title,
|
||||
default_path,
|
||||
properties,
|
||||
&paths))
|
||||
return v8::Undefined();
|
||||
|
||||
v8::Handle<v8::Array> result = v8::Array::New(paths.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue