Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Issue 1294523004: ozone: Handle pressure and tilt for stylus devices (Closed)

Created:
5 years, 4 months ago by robert.bradford
Modified:
5 years, 4 months ago
Reviewers:
sadrul, spang
CC:
chromium-reviews, kalyank, jdduke+watch_chromium.org, ozone-reviews_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@new-pe-details
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone: Handle pressure and tilt for stylus devices With the enablement of the W3C Pointer Events specification it is now possible to interpret evdev events for pressure and tilt and expose them through the ui::MouseEvent's PointerDetails. We can also now expose that this mouse event is really from a pen type device. In order to work better with the Ozone input layer the method to set the PointerDetails for MouseEvent were changed to accept a complete PointerDetails object rather than per member mutators. BUG=516706 TEST=TabletEventConverterTest enhanced to look at tilt and pressure values, interactive testing on link with stylus device show it continues to behave as expected. Committed: https://crrev.com/953aa1bd2eef603489045f760a9c35ce50aa7c4f Cr-Commit-Position: refs/heads/master@{#345049}

Patch Set 1 #

Patch Set 2 : Update for mutator change in PointerDetails CL #

Total comments: 2

Patch Set 3 : Address spang@ feedback #

Total comments: 2

Patch Set 4 : Use PointerDetails directly #

Total comments: 1

Patch Set 5 : Drop now unused mutators. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -40 lines) Patch
M ui/events/event.h View 1 2 3 4 1 chunk +3 lines, -14 lines 0 comments Download
M ui/events/event_unittest.cc View 1 2 3 4 1 chunk +8 lines, -5 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.h View 1 2 3 4 chunks +5 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.cc View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M ui/events/ozone/evdev/input_injector_evdev.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc View 1 2 3 2 chunks +8 lines, -5 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.cc View 1 2 3 4 chunks +27 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
robert.bradford
Hi spang@ & sadrul@ here is what the Ozone patch to enable the advanced stylus ...
5 years, 4 months ago (2015-08-17 11:41:27 UTC) #2
spang
On 2015/08/17 11:41:27, robert.bradford wrote: > Hi spang@ & sadrul@ here is what the Ozone ...
5 years, 4 months ago (2015-08-18 21:56:06 UTC) #3
spang
On 2015/08/18 21:56:06, spang wrote: > On 2015/08/17 11:41:27, robert.bradford wrote: > > Hi spang@ ...
5 years, 4 months ago (2015-08-18 21:56:44 UTC) #4
spang
https://codereview.chromium.org/1294523004/diff/20001/ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc File ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc (right): https://codereview.chromium.org/1294523004/diff/20001/ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc#newcode426 ui/events/ozone/evdev/tablet_event_converter_evdev_unittest.cc:426: EXPECT_EQ((90.0f * 68) / 127, event->pointer_details().tilt_x()); Use EXPECT_FLOAT_EQ for ...
5 years, 4 months ago (2015-08-18 22:17:45 UTC) #5
robert.bradford
Yeh, the new CL dependencies feature is not super visible unless you know what you're ...
5 years, 4 months ago (2015-08-19 17:57:34 UTC) #6
spang
lgtm
5 years, 4 months ago (2015-08-19 18:14:58 UTC) #7
sadrul
https://codereview.chromium.org/1294523004/diff/40001/ui/events/ozone/evdev/device_event_dispatcher_evdev.h File ui/events/ozone/evdev/device_event_dispatcher_evdev.h (right): https://codereview.chromium.org/1294523004/diff/40001/ui/events/ozone/evdev/device_event_dispatcher_evdev.h#newcode54 ui/events/ozone/evdev/device_event_dispatcher_evdev.h:54: float tilt_y; Is there a reason to not use ...
5 years, 4 months ago (2015-08-20 06:25:50 UTC) #8
robert.bradford
https://codereview.chromium.org/1294523004/diff/40001/ui/events/ozone/evdev/device_event_dispatcher_evdev.h File ui/events/ozone/evdev/device_event_dispatcher_evdev.h (right): https://codereview.chromium.org/1294523004/diff/40001/ui/events/ozone/evdev/device_event_dispatcher_evdev.h#newcode54 ui/events/ozone/evdev/device_event_dispatcher_evdev.h:54: float tilt_y; On 2015/08/20 06:25:50, sadrul wrote: > Is ...
5 years, 4 months ago (2015-08-20 11:12:28 UTC) #9
sadrul
lgtm https://codereview.chromium.org/1294523004/diff/60001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/1294523004/diff/60001/ui/events/event.h#newcode477 ui/events/event.h:477: void set_radius_y(const float r) { pointer_details_.radius_y_ = r; ...
5 years, 4 months ago (2015-08-21 19:32:22 UTC) #10
robert.bradford
On 2015/08/21 19:32:22, sadrul wrote: > lgtm > > https://codereview.chromium.org/1294523004/diff/60001/ui/events/event.h > File ui/events/event.h (right): > ...
5 years, 4 months ago (2015-08-24 10:57:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1294523004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1294523004/80001
5 years, 4 months ago (2015-08-24 11:02:23 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-24 11:48:18 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-24 11:48:59 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/953aa1bd2eef603489045f760a9c35ce50aa7c4f
Cr-Commit-Position: refs/heads/master@{#345049}

Powered by Google App Engine
This is Rietveld 408576698