Skip to content

Commit

Permalink
Bug 1000870 - Add some features in testing system. r=smaug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessar committed May 19, 2015
1 parent 93555ac commit 676eb3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dom/base/nsContentUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7541,6 +7541,8 @@ int16_t
nsContentUtils::GetButtonsFlagForButton(int32_t aButton)
{
switch (aButton) {
case -1:
return WidgetMouseEvent::eNoButtonFlag;
case WidgetMouseEvent::eLeftButton:
return WidgetMouseEvent::eLeftButtonFlag;
case WidgetMouseEvent::eMiddleButton:
Expand Down
1 change: 1 addition & 0 deletions widget/MouseEvents.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class WidgetMouseEventBase : public WidgetInputEvent
int16_t button;

enum buttonsFlag {
eNoButtonFlag = 0x00,
eLeftButtonFlag = 0x01,
eRightButtonFlag = 0x02,
eMiddleButtonFlag = 0x04,
Expand Down

0 comments on commit 676eb3a

Please sign in to comment.