CefFileDialogMode.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // This file manually written from cef/include/internal/cef_types.h.
  3. // C API name: cef_file_dialog_mode_t.
  4. //
  5. namespace Xilium.CefGlue
  6. {
  7. using System;
  8. /// <summary>
  9. /// Supported file dialog modes.
  10. /// </summary>
  11. [Flags]
  12. public enum CefFileDialogMode
  13. {
  14. /// <summary>
  15. /// Requires that the file exists before allowing the user to pick it.
  16. /// </summary>
  17. Open = 0,
  18. /// <summary>
  19. /// Like Open, but allows picking multiple files to open.
  20. /// </summary>
  21. OpenMultiple,
  22. /// <summary>
  23. /// Like Open, but selects a folder to open.
  24. /// </summary>
  25. OpenFolder,
  26. /// <summary>
  27. /// Allows picking a nonexistent file, and prompts to overwrite if the file
  28. /// already exists.
  29. /// </summary>
  30. Save,
  31. /// <summary>
  32. /// General mask defining the bits used for the type values.
  33. /// </summary>
  34. TypeMask = 0xFF,
  35. // Qualifiers.
  36. // Any of the type values above can be augmented by one or more qualifiers.
  37. // These qualifiers further define the dialog behavior.
  38. /// <summary>
  39. /// Prompt to overwrite if the user selects an existing file with the Save
  40. /// dialog.
  41. /// </summary>
  42. OverwritePromptFlag = 0x01000000,
  43. /// <summary>
  44. /// Do not display read-only files.
  45. /// </summary>
  46. HideReadOnlyFlag = 0x02000000,
  47. }
  48. }