Constructors for ui::MouseEvent/ui::TouchEvent from ui::PointerEvent.
We don't support ui::PointerEvents in mus+ash client side right now, so we need to convert ui::PointerEvent to ui::MouseEvent/ui::TouchEvent until we have a better solution. This CL adds constructors we need so we can do this conversion. Previously this conversion happened when we deserialized mojom::Event to ui::Event, but that didn't seem the correct place to do it, since we serialized ui::PointerEvent (and not touch/mouse events) to mojom::Event, and we should get the same kind of object when deserializing. BUG=615094 Review-Url: https://codereview.chromium.org/2029713002 Cr-Commit-Position: refs/heads/master@{#397236}
Showing
Please register or sign in to comment