зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1672726 - Part 1: Rename MultiTouchInput::ToWidgetTouchEvent to ToWidgetEvent; r=botond
So it can be used in DispatchInputOnControllerThread template. Differential Revision: https://phabricator.services.mozilla.com/D112127
This commit is contained in:
Родитель
20c17fee02
Коммит
1aad51035c
|
@ -154,7 +154,7 @@ void MultiTouchInput::Translate(const ScreenPoint& aTranslation) {
|
|||
}
|
||||
}
|
||||
|
||||
WidgetTouchEvent MultiTouchInput::ToWidgetTouchEvent(nsIWidget* aWidget) const {
|
||||
WidgetTouchEvent MultiTouchInput::ToWidgetEvent(nsIWidget* aWidget) const {
|
||||
MOZ_ASSERT(NS_IsMainThread(),
|
||||
"Can only convert To WidgetTouchEvent on main thread");
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ class MultiTouchInput : public InputData {
|
|||
|
||||
void Translate(const ScreenPoint& aTranslation);
|
||||
|
||||
WidgetTouchEvent ToWidgetTouchEvent(nsIWidget* aWidget) const;
|
||||
WidgetTouchEvent ToWidgetEvent(nsIWidget* aWidget) const;
|
||||
|
||||
// Return the index into mTouches of the SingleTouchData with the given
|
||||
// identifier, or -1 if there is no such SingleTouchData.
|
||||
|
|
|
@ -844,7 +844,7 @@ class NPZCSupport final
|
|||
|
||||
// Dispatch APZ input event on Gecko thread.
|
||||
PostInputEvent([aInput, result](nsWindow* window) {
|
||||
WidgetTouchEvent touchEvent = aInput.ToWidgetTouchEvent(window);
|
||||
WidgetTouchEvent touchEvent = aInput.ToWidgetEvent(window);
|
||||
window->ProcessUntransformedAPZEvent(&touchEvent, result);
|
||||
window->DispatchHitTest(touchEvent);
|
||||
});
|
||||
|
|
|
@ -1083,10 +1083,10 @@ void nsBaseWidget::DispatchTouchInput(MultiTouchInput& aInput) {
|
|||
return;
|
||||
}
|
||||
|
||||
WidgetTouchEvent event = aInput.ToWidgetTouchEvent(this);
|
||||
WidgetTouchEvent event = aInput.ToWidgetEvent(this);
|
||||
ProcessUntransformedAPZEvent(&event, result);
|
||||
} else {
|
||||
WidgetTouchEvent event = aInput.ToWidgetTouchEvent(this);
|
||||
WidgetTouchEvent event = aInput.ToWidgetEvent(this);
|
||||
|
||||
nsEventStatus status;
|
||||
DispatchEvent(&event, status);
|
||||
|
|
Загрузка…
Ссылка в новой задаче