mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Core - Update ContextMenuMediaState values to match Chromium
- Enum updated - Other enum values added to related enums Resolves #4014
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,6 +26,10 @@ namespace CefSharp
|
||||
/// </summary>
|
||||
Audio,
|
||||
/// <summary>
|
||||
/// An canvas node is selected
|
||||
/// </summary>
|
||||
Canvas,
|
||||
/// <summary>
|
||||
/// A file node is selected.
|
||||
/// </summary>
|
||||
File,
|
||||
|
||||
Reference in New Issue
Block a user