From 6bb262e7bbc4e4a63ad7a1ac3dd7be0dfbeed335 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 22 Feb 2022 11:45:58 +1000 Subject: [PATCH] Core - Update ContextMenuMediaState values to match Chromium - Enum updated - Other enum values added to related enums Resolves #4014 --- CefSharp/Enums/CefMenuCommand.cs | 4 ++-- CefSharp/Enums/ContextMenuEditState.cs | 4 ++++ CefSharp/Enums/ContextMenuMediaState.cs | 24 +++++++++++++++++++----- CefSharp/Enums/ContextMenuMediaType.cs | 4 ++++ 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/CefSharp/Enums/CefMenuCommand.cs b/CefSharp/Enums/CefMenuCommand.cs index 71e7d5361..f69049426 100644 --- a/CefSharp/Enums/CefMenuCommand.cs +++ b/CefSharp/Enums/CefMenuCommand.cs @@ -39,12 +39,12 @@ namespace CefSharp AddToDictionary = 206, /// - /// 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 /// CustomFirst = 220, /// - /// 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 /// CustomLast = 250, diff --git a/CefSharp/Enums/ContextMenuEditState.cs b/CefSharp/Enums/ContextMenuEditState.cs index b7b6b1949..05173091b 100644 --- a/CefSharp/Enums/ContextMenuEditState.cs +++ b/CefSharp/Enums/ContextMenuEditState.cs @@ -48,5 +48,9 @@ namespace CefSharp /// A binary constant representing the can translate flag. /// CanTranslate = 1 << 7, + /// + /// A binary constant representing the can edit richly flag. + /// + CanEditRichly = 1 << 8, } } diff --git a/CefSharp/Enums/ContextMenuMediaState.cs b/CefSharp/Enums/ContextMenuMediaState.cs index 4c499912b..9b4d9dfd1 100644 --- a/CefSharp/Enums/ContextMenuMediaState.cs +++ b/CefSharp/Enums/ContextMenuMediaState.cs @@ -7,7 +7,9 @@ using System; namespace CefSharp { /// - /// 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. /// [Flags] public enum ContextMenuMediaState @@ -41,13 +43,13 @@ namespace CefSharp /// HasAudio = 1 << 5, /// - /// HasVideo + /// Can Toggle Controls /// - HasVideo = 1 << 6, + CanToggleControls = 1 << 6, /// - /// ControlRootElement + /// Controls /// - ControlRootElement = 1 << 7, + Controls = 1 << 7, /// /// CanPrint /// @@ -56,5 +58,17 @@ namespace CefSharp /// CanRotate /// CanRotate = 1 << 9, + /// + /// CanPictureInPicture + /// + CanPictureInPicture = 1 << 10, + /// + /// PictureInPicture + /// + PictureInPicture = 1 << 11, + /// + /// CanLoop + /// + CanLoop = 1 << 12, } } diff --git a/CefSharp/Enums/ContextMenuMediaType.cs b/CefSharp/Enums/ContextMenuMediaType.cs index 0f548fe0c..5980d8d3a 100644 --- a/CefSharp/Enums/ContextMenuMediaType.cs +++ b/CefSharp/Enums/ContextMenuMediaType.cs @@ -26,6 +26,10 @@ namespace CefSharp /// Audio, /// + /// An canvas node is selected + /// + Canvas, + /// /// A file node is selected. /// File,