Bug 901129 - Remove XUL Fennec's MOZ_ONLY_TOUCH_EVENTS flag. r=kats

This commit is contained in:
Wes Johnston 2013-08-05 10:32:01 -07:00
parent 7fab5e3863
commit 00e61e639b
4 changed files with 0 additions and 23 deletions

View File

@ -4189,7 +4189,6 @@ MOZ_SAFE_BROWSING=
MOZ_HELP_VIEWER=
MOZ_SPELLCHECK=1
MOZ_ANDROID_OMTC=
MOZ_ONLY_TOUCH_EVENTS=
MOZ_TOOLKIT_SEARCH=1
MOZ_UI_LOCALE=en-US
MOZ_UNIVERSALCHARDET=1
@ -8585,7 +8584,6 @@ AC_SUBST(ACCESSIBILITY)
AC_SUBST(MOZ_SPELLCHECK)
AC_SUBST(MOZ_ANDROID_OMTC)
AC_SUBST(MOZ_ANDROID_ANR_REPORTER)
AC_SUBST(MOZ_ONLY_TOUCH_EVENTS)
AC_SUBST(MOZ_CRASHREPORTER)
AC_SUBST(MOZ_CRASHREPORTER_INJECTOR)
AC_SUBST(MOZ_CRASHREPORTER_UPLOAD_FULL_SYMBOLS)

View File

@ -41,9 +41,6 @@ MOZ_APP_COMPONENT_INCLUDE=nsBrowserComponents.h
# use custom widget for html:select
MOZ_USE_NATIVE_POPUP_WINDOWS=1
# dispatch only touch events (no mouse events)
MOZ_ONLY_TOUCH_EVENTS=1
MOZ_APP_ID={aa3c5121-dab2-40e2-81ca-7ea25febc110}
MOZ_ANDROID_OMTC=1

View File

@ -16,9 +16,6 @@ MODULE_NAME = nsWidgetAndroidModule
LIBXUL_LIBRARY = 1
FAIL_ON_WARNINGS := 1
ifdef MOZ_ONLY_TOUCH_EVENTS
DEFINES += -DMOZ_ONLY_TOUCH_EVENTS
endif
ifdef MOZ_WEBSMS_BACKEND
DEFINES += -DMOZ_WEBSMS_BACKEND
endif

View File

@ -1158,21 +1158,6 @@ nsWindow::OnMouseEvent(AndroidGeckoEvent *ae)
{
uint32_t msg;
switch (ae->Action()) {
#ifndef MOZ_ONLY_TOUCH_EVENTS
case AndroidMotionEvent::ACTION_DOWN:
msg = NS_MOUSE_BUTTON_DOWN;
break;
case AndroidMotionEvent::ACTION_MOVE:
msg = NS_MOUSE_MOVE;
break;
case AndroidMotionEvent::ACTION_UP:
case AndroidMotionEvent::ACTION_CANCEL:
msg = NS_MOUSE_BUTTON_UP;
break;
#endif
case AndroidMotionEvent::ACTION_HOVER_MOVE:
msg = NS_MOUSE_MOVE;
break;