Bug 1278871 - use MOZ_FALLTHROUGH in widget/android/; r=snorp

This commit is contained in:
Nathan Froyd
2016-06-09 18:44:34 -04:00
parent b0d99950a0
commit 7886140c71

View File

@@ -563,7 +563,9 @@ AndroidGeckoEvent::MakeTouchEvent(nsIWidget* widget)
break;
}
}
MOZ_FALLTHROUGH;
case AndroidMotionEvent::ACTION_DOWN:
MOZ_FALLTHROUGH;
case AndroidMotionEvent::ACTION_POINTER_DOWN: {
type = eTouchStart;
break;
@@ -573,6 +575,7 @@ AndroidGeckoEvent::MakeTouchEvent(nsIWidget* widget)
break;
}
}
MOZ_FALLTHROUGH;
case AndroidMotionEvent::ACTION_MOVE: {
type = eTouchMove;
break;
@@ -582,7 +585,9 @@ AndroidGeckoEvent::MakeTouchEvent(nsIWidget* widget)
break;
}
}
MOZ_FALLTHROUGH;
case AndroidMotionEvent::ACTION_UP:
MOZ_FALLTHROUGH;
case AndroidMotionEvent::ACTION_POINTER_UP: {
type = eTouchEnd;
// for pointer-up events we only want the data from
@@ -592,6 +597,7 @@ AndroidGeckoEvent::MakeTouchEvent(nsIWidget* widget)
break;
}
case AndroidMotionEvent::ACTION_OUTSIDE:
MOZ_FALLTHROUGH;
case AndroidMotionEvent::ACTION_CANCEL: {
type = eTouchCancel;
break;