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

@ -23,12 +23,13 @@ enum FileDialogProperty {
FILE_DIALOG_CREATE_DIRECTORY = 8,
};
bool ShowOpenDialog(const std::string& title,
bool ShowOpenDialog(atom::NativeWindow* parent_window,
const std::string& title,
const base::FilePath& default_path,
int properties,
std::vector<base::FilePath>* paths);
bool ShowSaveDialog(atom::NativeWindow* window,
bool ShowSaveDialog(atom::NativeWindow* parent_window,
const std::string& title,
const base::FilePath& default_path,
base::FilePath* path);