mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 15:43:10 -10:00
Bug 879011 - Convert nsIntPoint instances in InputData.h to types with units. r=kentuckyfriedtakahe
This commit is contained in:
1 parent
e886819e9a
commit
61ee313302
9 files changed
+95
-49
No files matched your search
@@ -797,9 +797,13 @@ AndroidGeckoEvent::MakeMultiTouchInput(nsIWidget* widget)
|
||||
const nsIntPoint& offset = widget->WidgetToScreenOffset();
|
||||
event.mTouches.SetCapacity(endIndex - startIndex);
|
||||
for (int i = startIndex; i < endIndex; i++) {
|
||||
nsIntPoint point = Points()[i] - offset;
|
||||
nsIntPoint radius = PointRadii()[i];
|
||||
SingleTouchData data(PointIndicies()[i],
|
||||
Points()[i] - offset,
|
||||
PointRadii()[i],
|
||||
ScreenIntPoint::FromUnknownPoint(
|
||||
gfx::IntPoint(point.x, point.y)),
|
||||
ScreenSize::FromUnknownSize(
|
||||
gfx::Size(radius.x, radius.y)),
|
||||
Orientations()[i],
|
||||
Pressures()[i]);
|
||||
event.mTouches.AppendElement(data);
|
||||
|
||||
Reference in new issue
Block a user