Bug 1000870 - Add some features in testing system. r=smaug
☠☠ backed out by 6b49048a0f7a ☠ ☠
authorMaksim Lebedev <Alessarik@gmail.com>
Tue, 19 May 2015 07:03:00 +0200
changeset 321462 76c66d5a8196e8c11b131a82ac4c879fac9740e6
parent 321461 07d6feffedb95ff5ca56f91ab6a69f8d8957d05d
child 321463 c8273997b1414df880a2f5dc3c563c3ed4ebe2c8
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1000870
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1000870 - Add some features in testing system. r=smaug
dom/base/nsContentUtils.cpp
widget/MouseEvents.h
--- a/dom/base/nsContentUtils.cpp
+++ b/dom/base/nsContentUtils.cpp
@@ -7664,16 +7664,18 @@ nsContentUtils::GetWidget(nsIPresShell* 
   }
   return nullptr;
 }
 
 int16_t
 nsContentUtils::GetButtonsFlagForButton(int32_t aButton)
 {
   switch (aButton) {
+    case -1:
+      return WidgetMouseEvent::eNoButtonFlag;
     case WidgetMouseEvent::eLeftButton:
       return WidgetMouseEvent::eLeftButtonFlag;
     case WidgetMouseEvent::eMiddleButton:
       return WidgetMouseEvent::eMiddleButtonFlag;
     case WidgetMouseEvent::eRightButton:
       return WidgetMouseEvent::eRightButtonFlag;
     case 4:
       return WidgetMouseEvent::e4thButtonFlag;
--- a/widget/MouseEvents.h
+++ b/widget/MouseEvents.h
@@ -110,16 +110,17 @@ public:
     eMiddleButton = 1,
     eRightButton  = 2
   };
   // Pressed button ID of mousedown or mouseup event.
   // This is set only when pressing a button causes the event.
   int16_t button;
 
   enum buttonsFlag {
+    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
     // mice, see "buttons" attribute document of DOM3 Events.