Bug 1259660 - Clean up WidgetMouseEventBase draft
authorRaphael <raphael.cojocaru@yahoo.com>
Sat, 15 Oct 2016 11:18:14 +0300
changeset 425625 feb9f833288e784f544d9898c902c49f4ee36026
parent 425624 ba452260cc7a371bc6b2e66e36f60871de5e15ed
child 533966 47f68ac9a1df9eca334e7f7e7faf4dc25579f3ae
push id32476
push userbmo:raphael.cojocaru@yahoo.com
push dateSat, 15 Oct 2016 08:19:05 +0000
bugs1259660
milestone52.0a1
Bug 1259660 - Clean up WidgetMouseEventBase ename WidgetMouseEventBase::buttonsFlag to WidgetMouseEventBase::ButtonsFlag and make its type int16_t named as WidgetMouseEventBase::ButtonsFlagType. MozReview-Commit-ID: KCwFGUo13re
widget/MouseEvents.h
--- a/widget/MouseEvents.h
+++ b/widget/MouseEvents.h
@@ -111,17 +111,19 @@ public:
     eLeftButton   = 0,
     eMiddleButton = 1,
     eRightButton  = 2
   };
   // Pressed button ID of mousedown or mouseup event.
   // This is set only when pressing a button causes the event.
   ButtonType button;
 
-  enum buttonsFlag {
+  typedef int16_t ButtonsFlagType;
+  enum ButtonsFlag : ButtonsFlagType
+  {
     eNoButtonFlag     = 0x00,
     eLeftButtonFlag   = 0x01,
     eRightButtonFlag  = 0x02,
     eMiddleButtonFlag = 0x04,
     // typicall, "back" button being left side of 5-button
     // mice, see "buttons" attribute document of DOM3 Events.
     e4thButtonFlag    = 0x08,
     // typicall, "forward" button being right side of 5-button