Refactored WebMouseWheelEvent to use ScrollGranularity.

WebMouseWheelEvent currently uses two bools to represent the units of
the delta; one for precise pixel units and one for page units. However,
it is undefined for them to both be true, and adding new units would not
be trivial; as such, it should instead be represented as an enum.
ScrollGranularity already includes this information, and so is used as
the enum. However, since some of the other units (e.g. line) were
previously not supported, a DCHECK has been added to the mouse wheel
event queue to check that we aren't getting units we weren't expecting.

This refactoring work is done on behalf of the CL
http://crrev.com/c/1776898, which will be adding percentage units to
ScrollGranularity.

Bug: 1008132
Change-Id: I3972a375edfceefd29bbb05254c810d60706e3ef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1812330
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Bill Budge <[email protected]>
Reviewed-by: Ken Buchanan <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Daniel Libby <[email protected]>
Reviewed-by: David Bokan <[email protected]>
Commit-Queue: Matt Amert <[email protected]>
Cr-Commit-Position: refs/heads/master@{#702259}
45 files changed