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:
Edgar Chen 2021-04-22 16:01:26 +00:00
Родитель 20c17fee02
Коммит 1aad51035c
4 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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);