mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
Slightly unrelated change, but here goes: Converted the CefEventFlags class to C#.
This commit is contained in:
@@ -12,33 +12,4 @@ namespace CefSharp
|
||||
Middle = CefBrowserHost::MouseButtonType::MBT_MIDDLE,
|
||||
Right = CefBrowserHost::MouseButtonType::MBT_RIGHT
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Supported event bit flags.
|
||||
/// </summary>
|
||||
[FlagsAttribute]
|
||||
public enum class CefEventFlags : UInt32
|
||||
{
|
||||
None = 0,
|
||||
|
||||
CapsLockOn = 1 << 0,
|
||||
|
||||
ShiftDown = 1 << 1,
|
||||
ControlDown = 1 << 2,
|
||||
AltDown = 1 << 3,
|
||||
|
||||
LeftMouseButton = 1 << 4,
|
||||
MiddleMouseButton = 1 << 5,
|
||||
RightMouseButton = 1 << 6,
|
||||
|
||||
/// <summary>
|
||||
/// Mac OS-X command key.
|
||||
/// </summary>
|
||||
CommandDown = 1 << 7,
|
||||
|
||||
NumLockOn = 1 << 8,
|
||||
IsKeyPad = 1 << 9,
|
||||
IsLeft = 1 << 10,
|
||||
IsRight = 1 << 11,
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
|
||||
namespace CefSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// Supported event bit flags.
|
||||
/// </summary>
|
||||
[FlagsAttribute]
|
||||
public enum CefEventFlags
|
||||
{
|
||||
None = 0,
|
||||
|
||||
CapsLockOn = 1 << 0,
|
||||
|
||||
ShiftDown = 1 << 1,
|
||||
ControlDown = 1 << 2,
|
||||
AltDown = 1 << 3,
|
||||
|
||||
LeftMouseButton = 1 << 4,
|
||||
MiddleMouseButton = 1 << 5,
|
||||
RightMouseButton = 1 << 6,
|
||||
|
||||
/// <summary>
|
||||
/// Mac OS-X command key.
|
||||
/// </summary>
|
||||
CommandDown = 1 << 7,
|
||||
|
||||
NumLockOn = 1 << 8,
|
||||
IsKeyPad = 1 << 9,
|
||||
IsLeft = 1 << 10,
|
||||
IsRight = 1 << 11,
|
||||
};
|
||||
}
|
||||
@@ -86,6 +86,7 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CefEventFlags.cs" />
|
||||
<Compile Include="Internals\BitmapInfo.cs" />
|
||||
<Compile Include="Internals\ISubprocessCallback.cs" />
|
||||
<Compile Include="Internals\JavascriptMemberDescription.cs" />
|
||||
|
||||
Reference in New Issue
Block a user