Core - Update ContextMenuMediaState values to match Chromium

- Enum updated
- Other enum values added to related enums

Resolves #4014
This commit is contained in:
Alex Maitland
2022-02-22 11:45:58 +10:00
parent 009687f7dd
commit 6bb262e7bb
4 changed files with 29 additions and 7 deletions
+2 -2
View File
@@ -39,12 +39,12 @@ namespace CefSharp
AddToDictionary = 206,
/// <summary>
/// Custom menu items originating from the renderer process. For example, plugin placeholder menu items or Flash menu items.
/// Custom menu items originating from the renderer process
/// This is the first entry
/// </summary>
CustomFirst = 220,
/// <summary>
/// Custom menu items originating from the renderer process. For example, plugin placeholder menu items or Flash menu items.
/// Custom menu items originating from the renderer process
/// This is the last entry
/// </summary>
CustomLast = 250,
+4
View File
@@ -48,5 +48,9 @@ namespace CefSharp
/// A binary constant representing the can translate flag.
/// </summary>
CanTranslate = 1 << 7,
/// <summary>
/// A binary constant representing the can edit richly flag.
/// </summary>
CanEditRichly = 1 << 8,
}
}
+19 -5
View File
@@ -7,7 +7,9 @@ using System;
namespace CefSharp
{
/// <summary>
/// Supported context menu media state bit flags.
/// Supported context menu media state bit flags. These constants match their
/// equivalents in Chromium's ContextMenuData::MediaFlags and should not be
/// renumbered.
/// </summary>
[Flags]
public enum ContextMenuMediaState
@@ -41,13 +43,13 @@ namespace CefSharp
/// </summary>
HasAudio = 1 << 5,
/// <summary>
/// HasVideo
/// Can Toggle Controls
/// </summary>
HasVideo = 1 << 6,
CanToggleControls = 1 << 6,
/// <summary>
/// ControlRootElement
/// Controls
/// </summary>
ControlRootElement = 1 << 7,
Controls = 1 << 7,
/// <summary>
/// CanPrint
/// </summary>
@@ -56,5 +58,17 @@ namespace CefSharp
/// CanRotate
/// </summary>
CanRotate = 1 << 9,
/// <summary>
/// CanPictureInPicture
/// </summary>
CanPictureInPicture = 1 << 10,
/// <summary>
/// PictureInPicture
/// </summary>
PictureInPicture = 1 << 11,
/// <summary>
/// CanLoop
/// </summary>
CanLoop = 1 << 12,
}
}
+4
View File
@@ -26,6 +26,10 @@ namespace CefSharp
/// </summary>
Audio,
/// <summary>
/// An canvas node is selected
/// </summary>
Canvas,
/// <summary>
/// A file node is selected.
/// </summary>
File,