@@ -1008,7 +1008,7 @@ nsDOMWindowUtils::SendNativeKeyEvent(int32_t aNativeKeyboardLayout,
10081008 if (!widget)
10091009 return NS_ERROR_FAILURE;
10101010
1011- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs
1011+ NS_DispatchToMainThread (NewRunnableMethod
10121012 <int32_t , int32_t , uint32_t , nsString, nsString, nsIObserver*>
10131013 (widget, &nsIWidget::SynthesizeNativeKeyEvent, aNativeKeyboardLayout,
10141014 aNativeKeyCode, aModifiers, aCharacters, aUnmodifiedCharacters, aObserver));
@@ -1028,7 +1028,7 @@ nsDOMWindowUtils::SendNativeMouseEvent(int32_t aScreenX,
10281028 if (!widget)
10291029 return NS_ERROR_FAILURE;
10301030
1031- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs
1031+ NS_DispatchToMainThread (NewRunnableMethod
10321032 <LayoutDeviceIntPoint, int32_t , int32_t , nsIObserver*>
10331033 (widget, &nsIWidget::SynthesizeNativeMouseEvent,
10341034 LayoutDeviceIntPoint (aScreenX, aScreenY), aNativeMessage, aModifierFlags,
@@ -1047,7 +1047,7 @@ nsDOMWindowUtils::SendNativeMouseMove(int32_t aScreenX,
10471047 if (!widget)
10481048 return NS_ERROR_FAILURE;
10491049
1050- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs
1050+ NS_DispatchToMainThread (NewRunnableMethod
10511051 <LayoutDeviceIntPoint, nsIObserver*>
10521052 (widget, &nsIWidget::SynthesizeNativeMouseMove,
10531053 LayoutDeviceIntPoint (aScreenX, aScreenY), aObserver));
@@ -1072,7 +1072,7 @@ nsDOMWindowUtils::SendNativeMouseScrollEvent(int32_t aScreenX,
10721072 return NS_ERROR_FAILURE;
10731073 }
10741074
1075- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs
1075+ NS_DispatchToMainThread (NewRunnableMethod
10761076 <mozilla::LayoutDeviceIntPoint, uint32_t , double , double , double , uint32_t , uint32_t , nsIObserver*>
10771077 (widget, &nsIWidget::SynthesizeNativeMouseScrollEvent,
10781078 LayoutDeviceIntPoint (aScreenX, aScreenY), aNativeMessage, aDeltaX, aDeltaY,
@@ -1098,7 +1098,7 @@ nsDOMWindowUtils::SendNativeTouchPoint(uint32_t aPointerId,
10981098 return NS_ERROR_INVALID_ARG;
10991099 }
11001100
1101- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs
1101+ NS_DispatchToMainThread (NewRunnableMethod
11021102 <uint32_t , nsIWidget::TouchPointerState, LayoutDeviceIntPoint, double , uint32_t , nsIObserver*>
11031103 (widget, &nsIWidget::SynthesizeNativeTouchPoint, aPointerId,
11041104 (nsIWidget::TouchPointerState)aTouchState,
@@ -1118,7 +1118,7 @@ nsDOMWindowUtils::SendNativeTouchTap(int32_t aScreenX,
11181118 return NS_ERROR_FAILURE;
11191119 }
11201120
1121- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs
1121+ NS_DispatchToMainThread (NewRunnableMethod
11221122 <LayoutDeviceIntPoint, bool , nsIObserver*>
11231123 (widget, &nsIWidget::SynthesizeNativeTouchTap,
11241124 LayoutDeviceIntPoint (aScreenX, aScreenY), aLongTap, aObserver));
@@ -1133,7 +1133,7 @@ nsDOMWindowUtils::ClearNativeTouchSequence(nsIObserver* aObserver)
11331133 return NS_ERROR_FAILURE;
11341134 }
11351135
1136- NS_DispatchToMainThread (NS_NewRunnableMethodWithArgs <nsIObserver*>
1136+ NS_DispatchToMainThread (NewRunnableMethod <nsIObserver*>
11371137 (widget, &nsIWidget::ClearNativeTouchSequence, aObserver));
11381138 return NS_OK;
11391139}
0 commit comments