From ef21c492b67438cc100af09554ee6da717af7389 Mon Sep 17 00:00:00 2001 From: amaitland Date: Wed, 18 Mar 2015 11:19:26 +1000 Subject: [PATCH] Update CefFileDialogMode to reflect new values --- CefSharp/CefFileDialogMode.cs | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/CefSharp/CefFileDialogMode.cs b/CefSharp/CefFileDialogMode.cs index d200f9c34..c8f3f16b3 100644 --- a/CefSharp/CefFileDialogMode.cs +++ b/CefSharp/CefFileDialogMode.cs @@ -2,23 +2,43 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; + namespace CefSharp { + /// + /// CefFileDialogMode (Based on cef_file_dialog_mode_t) + /// + [Flags] public enum CefFileDialogMode { /// /// Requires that the file exists before allowing the user to pick it. /// Open = 0, - /// /// Like Open, but allows picking multiple files to open. /// OpenMultiple, - + /// + // Like Open, but selects a folder to open. + /// + OpenFolder, /// /// Allows picking a nonexistent file, and prompts to overwrite if the file already exists. /// - Save + Save, + /// + /// General mask defining the bits used for the type values. + /// + TypeMask = 0xFF, + /// + /// Prompt to overwrite if the user selects an existing file with the Save dialog. + /// + OverwritePrompt = 0x01000000, + /// + /// Do not display read-only files. + /// + HideReadOnly = 0x02000000, } }