Skip to content

Commit 743fbc6

Browse files
Bug 912956 part.13 mozilla/TouchEvents.h should be included directly r=roc
1 parent c67503e commit 743fbc6

34 files changed

+39
-4
lines changed

accessible/src/base/nsCoreUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "nsISelectionPrivate.h"
2626
#include "nsISelectionController.h"
2727
#include "nsGUIEvent.h"
28+
#include "mozilla/TouchEvents.h"
2829
#include "nsView.h"
2930
#include "nsGkAtoms.h"
3031
#include "nsDOMTouchEvent.h"

content/events/src/nsDOMEvent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "nsIPresShell.h"
1616
#include "nsIDocument.h"
1717
#include "mozilla/MutationEvent.h"
18+
#include "mozilla/TouchEvents.h"
1819
#include "nsContentUtils.h"
1920
#include "nsJSEnvironment.h"
2021
#include "mozilla/Preferences.h"

content/events/src/nsDOMSimpleGestureEvent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "nsDOMSimpleGestureEvent.h"
77
#include "prtime.h"
8+
#include "mozilla/TouchEvents.h"
89

910
nsDOMSimpleGestureEvent::nsDOMSimpleGestureEvent(mozilla::dom::EventTarget* aOwner,
1011
nsPresContext* aPresContext,

content/events/src/nsDOMSimpleGestureEvent.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "nsIDOMSimpleGestureEvent.h"
99
#include "nsDOMMouseEvent.h"
10+
#include "mozilla/TouchEvents.h"
1011
#include "mozilla/dom/SimpleGestureEventBinding.h"
1112

1213
class nsPresContext;

content/events/src/nsDOMTouchEvent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
66

77
#include "nsDOMTouchEvent.h"
8-
#include "nsGUIEvent.h"
98
#include "nsContentUtils.h"
109
#include "mozilla/Preferences.h"
1110
#include "mozilla/dom/Touch.h"
1211
#include "mozilla/dom/TouchListBinding.h"
12+
#include "mozilla/TouchEvents.h"
1313

1414
using namespace mozilla;
1515
using namespace mozilla::dom;

content/events/src/nsDOMTouchEvent.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88
#include "nsDOMUIEvent.h"
99
#include "nsTArray.h"
1010
#include "mozilla/Attributes.h"
11+
#include "mozilla/TouchEvents.h"
1112
#include "nsJSEnvironment.h"
1213
#include "mozilla/dom/TouchEventBinding.h"
1314
#include "nsWrapperCache.h"
1415

16+
1517
class nsAString;
1618

1719
class nsDOMTouchList MOZ_FINAL : public nsISupports

content/events/src/nsEventDispatcher.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "GeneratedEvents.h"
1919
#include "mozilla/dom/EventTarget.h"
2020
#include "mozilla/MutationEvent.h"
21+
#include "mozilla/TouchEvents.h"
2122

2223
using namespace mozilla;
2324
using namespace mozilla::dom;

content/events/src/nsEventStateManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "mozilla/Attributes.h"
88
#include "mozilla/MathAlgorithms.h"
9+
#include "mozilla/TouchEvents.h"
910
#include "mozilla/dom/TabParent.h"
1011

1112
#include "nsCOMPtr.h"

content/events/src/nsEventStateManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#ifndef nsEventStateManager_h__
77
#define nsEventStateManager_h__
88

9+
#include "mozilla/EventForwards.h"
910
#include "mozilla/TypedEnum.h"
1011

1112
#include "nsGUIEvent.h"

content/html/content/src/HTMLInputElement.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959

6060
#include "nsIDOMMutationEvent.h"
6161
#include "mozilla/MutationEvent.h"
62+
#include "mozilla/TouchEvents.h"
6263
#include "nsEventListenerManager.h"
6364

6465
#include "nsRuleData.h"

dom/base/nsDOMWindowUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include "nsJSEnvironment.h"
3535
#include "nsJSUtils.h"
3636

37+
#include "mozilla/TouchEvents.h"
38+
3739
#include "nsViewManager.h"
3840

3941
#include "nsIDOMHTMLCanvasElement.h"

dom/ipc/TabChild.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "mozilla/layers/ShadowLayers.h"
2525
#include "mozilla/layout/RenderFrameChild.h"
2626
#include "mozilla/StaticPtr.h"
27+
#include "mozilla/TouchEvents.h"
2728
#include "mozilla/unused.h"
2829
#include "mozIApplication.h"
2930
#include "nsContentUtils.h"

dom/ipc/TabChild.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "nsITabChild.h"
3636
#include "mozilla/Attributes.h"
3737
#include "mozilla/dom/TabContext.h"
38+
#include "mozilla/EventForwards.h"
3839

3940
struct gfxMatrix;
4041
class nsICachedFileDescriptorListener;

dom/ipc/TabParent.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "mozilla/layers/CompositorParent.h"
2020
#include "mozilla/layout/RenderFrameParent.h"
2121
#include "mozilla/Preferences.h"
22+
#include "mozilla/TouchEvents.h"
2223
#include "mozilla/unused.h"
2324
#include "nsCOMPtr.h"
2425
#include "nsContentPermissionHelper.h"

dom/ipc/TabParent.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "mozilla/dom/PBrowserParent.h"
1111
#include "mozilla/dom/PContentDialogParent.h"
1212
#include "mozilla/dom/TabContext.h"
13+
#include "mozilla/TouchEvents.h"
1314
#include "nsCOMPtr.h"
1415
#include "nsIAuthPromptProvider.h"
1516
#include "nsIBrowserDOMWindow.h"

gfx/layers/composite/APZCTreeManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "mozilla/gfx/Point.h" // for Point
1515
#include "mozilla/layers/AsyncPanZoomController.h"
1616
#include "mozilla/mozalloc.h" // for operator new
17+
#include "mozilla/TouchEvents.h"
1718
#include "nsGUIEvent.h" // for nsMouseEvent, nsTouchEvent, etc
1819
#include "nsPoint.h" // for nsIntPoint
1920
#include "nsTArray.h" // for nsTArray, nsTArray_Impl, etc

gfx/layers/ipc/AsyncPanZoomController.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "gfxTypes.h" // for gfxFloat
2222
#include "mozilla/Assertions.h" // for MOZ_ASSERT, etc
2323
#include "mozilla/ClearOnShutdown.h" // for ClearOnShutdown
24+
#include "mozilla/EventForwards.h" // for nsEventStatus_*
2425
#include "mozilla/Preferences.h" // for Preferences
2526
#include "mozilla/ReentrantMonitor.h" // for ReentrantMonitorAutoEnter, etc
2627
#include "mozilla/StaticPtr.h" // for StaticAutoPtr
@@ -41,7 +42,6 @@
4142
#include "nsAutoPtr.h" // for nsRefPtr
4243
#include "nsCOMPtr.h" // for already_AddRefed
4344
#include "nsDebug.h" // for NS_WARNING
44-
#include "nsGUIEvent.h" // for nsInputEvent, nsTouchEvent, etc
4545
#include "nsISupportsImpl.h"
4646
#include "nsMathUtils.h" // for NS_hypot
4747
#include "nsPoint.h" // for nsIntPoint

layout/base/nsPresShell.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "mozilla/MemoryReporting.h"
2222
#include "mozilla/dom/TabChild.h"
2323
#include "mozilla/Likely.h"
24+
#include "mozilla/TouchEvents.h"
2425
#include "mozilla/Util.h"
2526
#include <algorithm>
2627

layout/forms/nsRangeFrame.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
#include "nsRangeFrame.h"
77

8+
#include "mozilla/TouchEvents.h"
9+
810
#include "nsContentCreatorFunctions.h"
911
#include "nsContentList.h"
1012
#include "nsContentUtils.h"

layout/xul/base/src/nsBoxFrame.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
// Needed for Print Preview
6868
#include "nsIURI.h"
6969

70+
#include "mozilla/TouchEvents.h"
71+
7072
using namespace mozilla;
7173
using namespace mozilla::dom;
7274

widget/android/AndroidJavaWrappers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "nsIDOMKeyEvent.h"
1111
#include "nsIWidget.h"
1212
#include "nsGUIEvent.h"
13+
#include "mozilla/TouchEvents.h"
1314

1415
using namespace mozilla;
1516
using namespace mozilla::dom;

widget/android/AndroidJavaWrappers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "nsIObserver.h"
1818
#include "mozilla/gfx/Rect.h"
1919
#include "mozilla/dom/Touch.h"
20+
#include "mozilla/EventForwards.h"
2021
#include "InputData.h"
2122
#include "Units.h"
2223

widget/android/nsWindow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include <math.h>
88
#include <unistd.h>
99

10+
#include "mozilla/TouchEvents.h"
11+
1012
#include "mozilla/dom/ContentParent.h"
1113
#include "mozilla/dom/ContentChild.h"
1214
#include "mozilla/unused.h"

widget/cocoa/nsChildView.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include "nsChildView.h"
1717
#include "nsCocoaWindow.h"
1818

19+
#include "mozilla/TouchEvents.h"
20+
1921
#include "nsObjCExceptions.h"
2022
#include "nsCOMPtr.h"
2123
#include "nsToolkit.h"

widget/gonk/nsAppShell.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#ifdef MOZ_OMX_DECODER
3434
#include "MediaResourceManagerService.h"
3535
#endif
36+
#include "mozilla/TouchEvents.h"
3637
#include "mozilla/FileUtils.h"
3738
#include "mozilla/Hal.h"
3839
#include "mozilla/Mutex.h"

widget/nsGUIEvent.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
#include "mozilla/MiscEvents.h"
1212
#include "mozilla/MouseEvents.h"
1313
#include "mozilla/TextEvents.h"
14-
#include "mozilla/TouchEvents.h"
1514

1615
#endif // nsGUIEvent_h__

widget/nsGUIEventIPC.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "ipc/IPCMessageUtils.h"
1010
#include "mozilla/GfxMessageUtils.h"
1111
#include "mozilla/dom/Touch.h"
12+
#include "mozilla/TouchEvents.h"
1213
#include "nsGUIEvent.h"
1314

1415
namespace IPC

widget/qt/nsWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
66
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
77

8+
#include "mozilla/TouchEvents.h"
89
#include "mozilla/Util.h"
910

1011
#include <QApplication>

widget/windows/nsWinGesture.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "nsIDOMWheelEvent.h"
1616
#include "mozilla/Constants.h"
1717
#include "mozilla/Preferences.h"
18+
#include "mozilla/TouchEvents.h"
1819

1920
using namespace mozilla;
2021
using namespace mozilla::widget;

widget/windows/nsWinGesture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <winuser.h>
1515
#include <tpcshrd.h>
1616
#include "nsPoint.h"
17-
#include "nsGUIEvent.h"
17+
#include "mozilla/TouchEvents.h"
1818

1919
// Desktop builds target apis for 502. Win8 Metro builds target 602.
2020
#if WINVER < 0x0602

widget/windows/nsWindow.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
**************************************************************/
5656

5757
#include "mozilla/MathAlgorithms.h"
58+
#include "mozilla/TouchEvents.h"
5859
#include "mozilla/Util.h"
5960

6061
#include "mozilla/ipc/RPCChannel.h"

widget/windows/winrt/MetroInput.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "InputData.h"
1414
#include "UIABridgePrivate.h"
1515
#include "MetroAppShell.h"
16+
#include "mozilla/TouchEvents.h"
1617

1718
// System headers (alphabetical)
1819
#include <windows.ui.core.h> // ABI::Window::UI::Core namespace

widget/windows/winrt/MetroWidget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "UIABridgePrivate.h"
3333
#include "WinMouseScrollHandler.h"
3434
#include "InputData.h"
35+
#include "mozilla/TouchEvents.h"
3536

3637
using namespace Microsoft::WRL;
3738
using namespace Microsoft::WRL::Wrappers;

widget/xpwidgets/InputData.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "mozilla/dom/Touch.h"
1010
#include "nsDebug.h"
1111
#include "nsThreadUtils.h"
12+
#include "mozilla/TouchEvents.h"
1213

1314
namespace mozilla {
1415

0 commit comments

Comments
 (0)