2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:19 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2017-03-01 16:20:25 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: Events")
|
|
|
|
|
2018-02-05 12:01:25 +03:00
|
|
|
BROWSER_CHROME_MANIFESTS += [
|
|
|
|
'test/browser.ini',
|
|
|
|
]
|
|
|
|
|
2016-02-25 05:51:00 +03:00
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest.ini',
|
|
|
|
'test/pointerevents/mochitest.ini',
|
2017-09-14 09:29:04 +03:00
|
|
|
'test/pointerevents/pointerlock/mochitest.ini',
|
2016-02-25 05:51:00 +03:00
|
|
|
]
|
|
|
|
|
2014-01-10 07:03:25 +04:00
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIEventListenerService.idl',
|
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = 'content_events'
|
|
|
|
|
|
|
|
EXPORTS.mozilla += [
|
2014-03-17 10:56:54 +04:00
|
|
|
'AsyncEventDispatcher.h',
|
2014-04-01 10:13:50 +04:00
|
|
|
'DOMEventTargetHelper.h',
|
2014-03-18 08:48:21 +04:00
|
|
|
'EventDispatcher.h',
|
2014-03-17 10:56:53 +04:00
|
|
|
'EventListenerManager.h',
|
2014-04-01 15:42:12 +04:00
|
|
|
'EventNameList.h',
|
2014-04-01 08:09:23 +04:00
|
|
|
'EventStateManager.h',
|
2014-04-03 08:18:36 +04:00
|
|
|
'EventStates.h',
|
2018-01-24 08:10:18 +03:00
|
|
|
'IMEContentObserver.h',
|
2014-03-08 05:20:07 +04:00
|
|
|
'IMEStateManager.h',
|
2019-01-07 13:10:57 +03:00
|
|
|
'InputTypeList.h',
|
2014-02-27 14:51:15 +04:00
|
|
|
'InternalMutationEvent.h',
|
2014-04-02 06:00:45 +04:00
|
|
|
'JSEventHandler.h',
|
2014-04-01 15:42:11 +04:00
|
|
|
'KeyNameList.h',
|
2018-09-08 01:53:33 +03:00
|
|
|
'PendingFullscreenEvent.h',
|
2014-05-25 06:08:58 +04:00
|
|
|
'PhysicalKeyCodeNameList.h',
|
2014-04-03 08:18:37 +04:00
|
|
|
'TextComposition.h',
|
2014-04-01 15:42:16 +04:00
|
|
|
'VirtualKeyCodeList.h',
|
Bug 143038 Make users can scroll contents horizontally with vertical wheel operation with a modifier r=smaug
This patch declares a new default action, "horizontal scroll", this scrolls
content horizontally with deltaY of wheel events and ignores deltaX and deltaZ.
This is used for default action with Shift key in default setting except on
macOS. On macOS, legacy mouse's vertical wheel operation with Shift key causes
native horizontal wheel event. Therefore, we don't need to use this new
default action on macOS. Additionally, old default action with Shift key,
navigating history, is moved to with Alt key. This makes same settings between
macOS and the others. So, this is better for users who use macOS and another
OS and web app developers who check wheel events only on macOS or other
platform(s).
For simpler implementation, default action handlers moves deltaY values to
deltaX values temporarily *only* while they handle wheel events. This is
performed by AutoWheelDeltaAdjuster and restored after handling it
automatically.
So, in other words, even if default action is "horizontal scroll", web apps
receives wheel events whose deltaY is not zero but its content will be
scrolled horizontally. This is same as Chromium, so, this behavior shouldn't
cause any incompatible behavior with it.
MozReview-Commit-ID: E4X3yZzLEAl
--HG--
extra : rebase_source : e20d854c6b0a181ad4c9e7304bd9ad14256481ff
2017-10-04 19:12:35 +03:00
|
|
|
'WheelHandlingHelper.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
2014-02-26 09:23:56 +04:00
|
|
|
'AnimationEvent.h',
|
2014-02-26 09:23:56 +04:00
|
|
|
'BeforeUnloadEvent.h',
|
2018-05-31 18:57:57 +03:00
|
|
|
'Clipboard.h',
|
2014-02-26 09:23:56 +04:00
|
|
|
'ClipboardEvent.h',
|
2014-02-26 09:23:57 +04:00
|
|
|
'CommandEvent.h',
|
2014-02-26 09:23:57 +04:00
|
|
|
'CompositionEvent.h',
|
2017-11-20 21:59:22 +03:00
|
|
|
'ConstructibleEventTarget.h',
|
2014-07-01 03:02:04 +04:00
|
|
|
'CustomEvent.h',
|
2013-08-12 18:45:33 +04:00
|
|
|
'DataTransfer.h',
|
2015-08-28 22:21:08 +03:00
|
|
|
'DataTransferItem.h',
|
|
|
|
'DataTransferItemList.h',
|
2014-02-27 14:51:12 +04:00
|
|
|
'DeviceMotionEvent.h',
|
2014-02-27 14:51:13 +04:00
|
|
|
'DragEvent.h',
|
2014-03-05 04:37:43 +04:00
|
|
|
'Event.h',
|
2014-01-10 07:03:25 +04:00
|
|
|
'EventTarget.h',
|
2014-02-27 14:51:13 +04:00
|
|
|
'FocusEvent.h',
|
2014-09-04 04:07:00 +04:00
|
|
|
'ImageCaptureError.h',
|
2014-04-10 11:11:37 +04:00
|
|
|
'InputEvent.h',
|
2014-02-27 14:51:13 +04:00
|
|
|
'KeyboardEvent.h',
|
2014-02-27 14:51:14 +04:00
|
|
|
'MessageEvent.h',
|
2014-02-27 14:51:15 +04:00
|
|
|
'MouseEvent.h',
|
2014-02-27 14:51:14 +04:00
|
|
|
'MouseScrollEvent.h',
|
2014-02-27 14:51:16 +04:00
|
|
|
'MutationEvent.h',
|
2014-02-28 18:58:43 +04:00
|
|
|
'NotifyPaintEvent.h',
|
2014-04-03 08:18:37 +04:00
|
|
|
'PaintRequest.h',
|
2013-11-21 09:44:22 +04:00
|
|
|
'PointerEvent.h',
|
2017-09-06 10:47:49 +03:00
|
|
|
'PointerEventHandler.h',
|
2014-02-28 18:58:43 +04:00
|
|
|
'ScrollAreaEvent.h',
|
2014-02-27 14:51:14 +04:00
|
|
|
'SimpleGestureEvent.h',
|
2014-05-29 17:33:00 +04:00
|
|
|
'StorageEvent.h',
|
2016-07-26 13:09:07 +03:00
|
|
|
'TextClause.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'Touch.h',
|
2014-02-28 18:58:42 +04:00
|
|
|
'TouchEvent.h',
|
2014-02-28 18:58:42 +04:00
|
|
|
'TransitionEvent.h',
|
2014-02-28 18:58:43 +04:00
|
|
|
'UIEvent.h',
|
2014-02-26 09:23:55 +04:00
|
|
|
'WheelEvent.h',
|
2014-02-28 18:58:42 +04:00
|
|
|
'XULCommandEvent.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2013-07-01 17:27:09 +04:00
|
|
|
if CONFIG['MOZ_WEBSPEECH']:
|
|
|
|
EXPORTS.mozilla.dom += ['SpeechRecognitionError.h']
|
|
|
|
|
2013-11-19 16:42:45 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-02-26 09:23:56 +04:00
|
|
|
'AnimationEvent.cpp',
|
2014-03-17 10:56:54 +04:00
|
|
|
'AsyncEventDispatcher.cpp',
|
2014-02-26 09:23:56 +04:00
|
|
|
'BeforeUnloadEvent.cpp',
|
2018-05-31 18:57:57 +03:00
|
|
|
'Clipboard.cpp',
|
2014-02-26 09:23:56 +04:00
|
|
|
'ClipboardEvent.cpp',
|
2014-02-26 09:23:57 +04:00
|
|
|
'CommandEvent.cpp',
|
2014-02-26 09:23:57 +04:00
|
|
|
'CompositionEvent.cpp',
|
2017-11-20 21:59:22 +03:00
|
|
|
'ConstructibleEventTarget.cpp',
|
2014-03-11 09:08:02 +04:00
|
|
|
'ContentEventHandler.cpp',
|
2015-10-20 08:19:43 +03:00
|
|
|
'CustomEvent.cpp',
|
2013-08-12 18:45:33 +04:00
|
|
|
'DataTransfer.cpp',
|
2016-08-18 16:15:07 +03:00
|
|
|
'DataTransferItem.cpp',
|
|
|
|
'DataTransferItemList.cpp',
|
2014-02-27 14:51:12 +04:00
|
|
|
'DeviceMotionEvent.cpp',
|
2014-04-01 10:13:50 +04:00
|
|
|
'DOMEventTargetHelper.cpp',
|
2014-02-27 14:51:13 +04:00
|
|
|
'DragEvent.cpp',
|
2014-03-05 04:37:43 +04:00
|
|
|
'Event.cpp',
|
2014-03-18 08:48:21 +04:00
|
|
|
'EventDispatcher.cpp',
|
2014-03-17 10:56:53 +04:00
|
|
|
'EventListenerManager.cpp',
|
2014-03-17 10:56:50 +04:00
|
|
|
'EventListenerService.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'EventTarget.cpp',
|
2014-02-27 14:51:13 +04:00
|
|
|
'FocusEvent.cpp',
|
2014-09-04 04:07:00 +04:00
|
|
|
'ImageCaptureError.cpp',
|
2014-03-08 05:20:07 +04:00
|
|
|
'IMEContentObserver.cpp',
|
2014-03-08 05:20:07 +04:00
|
|
|
'IMEStateManager.cpp',
|
2014-04-10 11:11:37 +04:00
|
|
|
'InputEvent.cpp',
|
2014-04-02 06:00:45 +04:00
|
|
|
'JSEventHandler.cpp',
|
2014-02-27 14:51:13 +04:00
|
|
|
'KeyboardEvent.cpp',
|
2014-02-27 14:51:14 +04:00
|
|
|
'MessageEvent.cpp',
|
2014-02-27 14:51:15 +04:00
|
|
|
'MouseEvent.cpp',
|
2014-02-27 14:51:14 +04:00
|
|
|
'MouseScrollEvent.cpp',
|
2014-02-27 14:51:16 +04:00
|
|
|
'MutationEvent.cpp',
|
2014-03-04 06:35:51 +04:00
|
|
|
'NotifyPaintEvent.cpp',
|
2014-04-03 08:18:37 +04:00
|
|
|
'PaintRequest.cpp',
|
2013-11-21 09:44:22 +04:00
|
|
|
'PointerEvent.cpp',
|
2017-09-06 10:47:49 +03:00
|
|
|
'PointerEventHandler.cpp',
|
2014-03-04 06:35:51 +04:00
|
|
|
'ScrollAreaEvent.cpp',
|
2014-02-27 14:51:14 +04:00
|
|
|
'SimpleGestureEvent.cpp',
|
2014-05-29 17:33:00 +04:00
|
|
|
'StorageEvent.cpp',
|
2016-07-26 13:09:07 +03:00
|
|
|
'TextClause.cpp',
|
2013-10-24 03:05:43 +04:00
|
|
|
'TextComposition.cpp',
|
|
|
|
'Touch.cpp',
|
2014-02-28 18:58:42 +04:00
|
|
|
'TouchEvent.cpp',
|
2014-02-28 18:58:42 +04:00
|
|
|
'TransitionEvent.cpp',
|
2014-03-04 06:35:51 +04:00
|
|
|
'UIEvent.cpp',
|
2014-02-26 09:23:55 +04:00
|
|
|
'WheelEvent.cpp',
|
2014-04-01 08:09:22 +04:00
|
|
|
'WheelHandlingHelper.cpp',
|
2014-02-28 18:58:42 +04:00
|
|
|
'XULCommandEvent.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-07-01 17:27:09 +04:00
|
|
|
|
2014-03-04 06:35:51 +04:00
|
|
|
# nsEventStateManager.cpp should be built separately because of Mac OS X headers.
|
2013-11-19 16:42:45 +04:00
|
|
|
SOURCES += [
|
2014-04-01 08:09:23 +04:00
|
|
|
'EventStateManager.cpp',
|
2013-11-19 16:42:45 +04:00
|
|
|
]
|
|
|
|
|
2013-07-01 17:27:09 +04:00
|
|
|
if CONFIG['MOZ_WEBSPEECH']:
|
2013-11-19 16:42:45 +04:00
|
|
|
UNIFIED_SOURCES += ['SpeechRecognitionError.cpp']
|
2013-08-22 10:55:59 +04:00
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2013-11-11 12:04:06 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2014-10-28 14:18:00 +03:00
|
|
|
'/docshell/base',
|
2013-11-11 12:04:06 +04:00
|
|
|
'/dom/base',
|
2014-10-25 21:24:55 +04:00
|
|
|
'/dom/html',
|
2014-08-31 08:43:46 +04:00
|
|
|
'/dom/storage',
|
2015-08-12 14:39:31 +03:00
|
|
|
'/dom/svg',
|
2014-07-26 01:15:35 +04:00
|
|
|
'/dom/xml',
|
2014-10-25 21:21:03 +04:00
|
|
|
'/dom/xul',
|
2013-12-08 19:51:16 +04:00
|
|
|
'/js/xpconnect/wrappers',
|
2018-09-26 17:41:12 +03:00
|
|
|
'/layout/forms',
|
2013-11-11 12:04:06 +04:00
|
|
|
'/layout/generic',
|
2013-12-04 05:06:16 +04:00
|
|
|
'/layout/xul',
|
2013-11-11 12:04:06 +04:00
|
|
|
'/layout/xul/tree/',
|
|
|
|
]
|
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|