gtk: Implement message box APIs

This commit is contained in:
Cheng Zhao 2015-07-07 15:45:13 +08:00
parent 8fca1f52d3
commit b98cdf71c4
2 changed files with 132 additions and 9 deletions

View file

@ -34,7 +34,7 @@ class FileChooserDialog {
const std::string& title,
const base::FilePath& default_path,
const Filters& filters)
: dialog_scope_(new atom::NativeWindow::DialogScope(parent_window)) {
: dialog_scope_(parent_window) {
const char* confirm_text = GTK_STOCK_OK;
if (action == GTK_FILE_CHOOSER_ACTION_SAVE)
confirm_text = GTK_STOCK_SAVE;
@ -131,13 +131,13 @@ class FileChooserDialog {
private:
void AddFilters(const Filters& filters);
atom::NativeWindow::DialogScope dialog_scope_;
GtkWidget* dialog_;
SaveDialogCallback save_callback_;
OpenDialogCallback open_callback_;
scoped_ptr<atom::NativeWindow::DialogScope> dialog_scope_;
DISALLOW_COPY_AND_ASSIGN(FileChooserDialog);
};