1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 MOCHITEST_MANIFESTS += ['test/mochitest.ini']
8 MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
11 'nsIEventListenerService.idl',
14 XPIDL_MODULE = 'content_events'
17 'AsyncEventDispatcher.h',
18 'DOMEventTargetHelper.h',
20 'EventListenerManager.h',
22 'EventStateManager.h',
25 'InternalMutationEvent.h',
28 'PhysicalKeyCodeNameList.h',
30 'VirtualKeyCodeList.h',
33 EXPORTS.mozilla.dom += [
35 'BeforeUnloadEvent.h',
40 'DataContainerEvent.h',
42 'DeviceMotionEvent.h',
57 'SimpleGestureEvent.h',
67 if CONFIG['MOZ_WEBSPEECH']:
68 EXPORTS.mozilla.dom += ['SpeechRecognitionError.h']
72 'AsyncEventDispatcher.cpp',
73 'BeforeUnloadEvent.cpp',
76 'CompositionEvent.cpp',
77 'ContentEventHandler.cpp',
78 'DataContainerEvent.cpp',
80 'DeviceMotionEvent.cpp',
81 'DOMEventTargetHelper.cpp',
84 'EventDispatcher.cpp',
85 'EventListenerManager.cpp',
86 'EventListenerService.cpp',
89 'IMEContentObserver.cpp',
90 'IMEStateManager.cpp',
96 'MouseScrollEvent.cpp',
98 'NotifyPaintEvent.cpp',
101 'ScrollAreaEvent.cpp',
102 'SimpleGestureEvent.cpp',
104 'TextComposition.cpp',
107 'TransitionEvent.cpp',
110 'WheelHandlingHelper.cpp',
111 'XULCommandEvent.cpp',
114 # nsEventStateManager.cpp should be built separately because of Mac OS X headers.
117 'EventStateManager.cpp',
120 if CONFIG['MOZ_WEBSPEECH']:
121 UNIFIED_SOURCES += ['SpeechRecognitionError.cpp']
123 FAIL_ON_WARNINGS = True
125 MSVC_ENABLE_PGO = True
127 include('/ipc/chromium/chromium-config.mozbuild')
129 FINAL_LIBRARY = 'xul'
132 '/content/html/content/src',
133 '/content/xul/content/src',
139 '/js/xpconnect/wrappers',
145 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':