Bug 1677012 - Give MultiTouchInput a move constructor. r=kats

Differential Revision: https://phabricator.services.mozilla.com/D96959
This commit is contained in:
Markus Stange 2020-11-13 12:15:45 +00:00
parent 8bead54135
commit ec6ef9110f

View File

@ -222,8 +222,13 @@ class MultiTouchInput : public InputData {
MultiTouchInput(MultiTouchType aType, uint32_t aTime, TimeStamp aTimeStamp,
Modifiers aModifiers);
MultiTouchInput();
MultiTouchInput(MultiTouchInput&&) = default;
MultiTouchInput(const MultiTouchInput& aOther);
explicit MultiTouchInput(const WidgetTouchEvent& aTouchEvent);
MultiTouchInput& operator=(MultiTouchInput&&) = default;
MultiTouchInput& operator=(const MultiTouchInput&) = default;
void Translate(const ScreenPoint& aTranslation);
WidgetTouchEvent ToWidgetTouchEvent(nsIWidget* aWidget) const;