Slightly unrelated change, but here goes: Converted the CefEventFlags class to C#.

This commit is contained in:
Per Lundberg
2014-04-08 19:00:42 +02:00
parent a9a016eecf
commit c4e56764e5
3 changed files with 34 additions and 29 deletions
-29
View File
@@ -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,
};
}
+33
View File
@@ -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,
};
}
+1
View File
@@ -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" />