From c4e56764e571bbd28abbf5fb7ba464fd995a0952 Mon Sep 17 00:00:00 2001 From: Per Lundberg Date: Tue, 8 Apr 2014 19:00:42 +0200 Subject: [PATCH] Slightly unrelated change, but here goes: Converted the CefEventFlags class to C#. --- CefSharp.Core/MouseButtonType.h | 29 ----------------------------- CefSharp/CefEventFlags.cs | 33 +++++++++++++++++++++++++++++++++ CefSharp/CefSharp.csproj | 1 + 3 files changed, 34 insertions(+), 29 deletions(-) create mode 100644 CefSharp/CefEventFlags.cs diff --git a/CefSharp.Core/MouseButtonType.h b/CefSharp.Core/MouseButtonType.h index d7eb1f28e..945f8849c 100644 --- a/CefSharp.Core/MouseButtonType.h +++ b/CefSharp.Core/MouseButtonType.h @@ -12,33 +12,4 @@ namespace CefSharp Middle = CefBrowserHost::MouseButtonType::MBT_MIDDLE, Right = CefBrowserHost::MouseButtonType::MBT_RIGHT }; - - /// - /// Supported event bit flags. - /// - [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, - - /// - /// Mac OS-X command key. - /// - CommandDown = 1 << 7, - - NumLockOn = 1 << 8, - IsKeyPad = 1 << 9, - IsLeft = 1 << 10, - IsRight = 1 << 11, - }; } \ No newline at end of file diff --git a/CefSharp/CefEventFlags.cs b/CefSharp/CefEventFlags.cs new file mode 100644 index 000000000..6f19c13b4 --- /dev/null +++ b/CefSharp/CefEventFlags.cs @@ -0,0 +1,33 @@ +using System; + +namespace CefSharp +{ + /// + /// Supported event bit flags. + /// + [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, + + /// + /// Mac OS-X command key. + /// + CommandDown = 1 << 7, + + NumLockOn = 1 << 8, + IsKeyPad = 1 << 9, + IsLeft = 1 << 10, + IsRight = 1 << 11, + }; +} diff --git a/CefSharp/CefSharp.csproj b/CefSharp/CefSharp.csproj index d1f0d6574..28debc08d 100644 --- a/CefSharp/CefSharp.csproj +++ b/CefSharp/CefSharp.csproj @@ -86,6 +86,7 @@ +