CoalescedWheelData.h (970B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_dom_CoalescedWheelData_h 8 #define mozilla_dom_CoalescedWheelData_h 9 10 #include "CoalescedInputData.h" 11 #include "mozilla/MouseEvents.h" 12 13 namespace mozilla::dom { 14 15 class CoalescedWheelData final : public CoalescedInputData<WidgetWheelEvent> { 16 public: 17 void Coalesce(const WidgetWheelEvent& aEvent, 18 const ScrollableLayerGuid& aGuid, 19 const uint64_t& aInputBlockId); 20 21 bool CanCoalesce(const WidgetWheelEvent& aEvent, 22 const ScrollableLayerGuid& aGuid, 23 const uint64_t& aInputBlockId); 24 }; 25 26 } // namespace mozilla::dom 27 28 #endif // mozilla_dom_CoalescedWheelData_h