mac: Implement the filters option.

This commit is contained in:
Cheng Zhao 2014-08-06 13:47:44 +08:00
parent dc257f1f86
commit 0721b34847
3 changed files with 47 additions and 11 deletions

View file

@ -3,7 +3,10 @@ v8Util = process.atomBinding 'v8_util'
BrowserWindow = require 'browser-window'
fileDialogProperties =
openFile: 1, openDirectory: 2, multiSelections: 4, createDirectory: 8
openFile: 1 << 0
openDirectory: 1 << 1
multiSelections: 1 << 2
createDirectory: 1 << 3
messageBoxTypes = ['none', 'info', 'warning']