Bug 1259666 part 1 - rename variable and definition change - r=masayuki

MozReview-Commit-ID: 1FWJypkoqYz

--HG--
extra : rebase_source : b3faef1abb72e8230ac70a963be96c19392632d4
This commit is contained in:
kshitija 2016-04-21 19:32:59 -07:00
parent 86ac5f9689
commit 118598553f
4 changed files with 6 additions and 5 deletions

View File

@ -2723,7 +2723,7 @@ EventStateManager::DecideGestureEvent(WidgetGestureNotifyEvent* aEvent,
*
* Note: we'll have to one-off various cases to ensure a good usable behavior
*/
WidgetGestureNotifyEvent::ePanDirection panDirection =
WidgetGestureNotifyEvent::PanDirection panDirection =
WidgetGestureNotifyEvent::ePanNone;
bool displayPanFeedback = false;
for (nsIFrame* current = targetFrame; current;

View File

@ -61,7 +61,8 @@ public:
return result;
}
enum ePanDirection
typedef int8_t PanDirectionType;
enum PanDirection : PanDirectionType
{
ePanNone,
ePanVertical,
@ -69,7 +70,7 @@ public:
ePanBoth
};
ePanDirection panDirection;
PanDirection panDirection;
bool displayPanFeedback;
void AssignGestureNotifyEventData(const WidgetGestureNotifyEvent& aEvent,

View File

@ -119,7 +119,7 @@ bool nsWinGesture::InitLibrary()
#define GCOUNT 5
bool nsWinGesture::SetWinGestureSupport(HWND hWnd,
WidgetGestureNotifyEvent::ePanDirection aDirection)
WidgetGestureNotifyEvent::PanDirection aDirection)
{
if (!getGestureInfo)
return false;

View File

@ -198,7 +198,7 @@ public:
nsWinGesture();
public:
bool SetWinGestureSupport(HWND hWnd, mozilla::WidgetGestureNotifyEvent::ePanDirection aDirection);
bool SetWinGestureSupport(HWND hWnd, mozilla::WidgetGestureNotifyEvent::PanDirection aDirection);
bool ShutdownWinGestureSupport();
bool RegisterTouchWindow(HWND hWnd);
bool UnregisterTouchWindow(HWND hWnd);