mac: Make ShowOpenDialog able to be shown as sheet.

This commit is contained in:
Cheng Zhao 2013-09-23 16:27:22 +08:00
parent 85d6588661
commit a4262bc39d
3 changed files with 26 additions and 5 deletions

View file

@ -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());