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

Issue 1260453006: ui: events: Add a class to hold common touch and stylus properties (Closed)

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

Description

ui: events: Add a class to hold common touch and stylus properties This change introduces a new class, PointerDetails that holds event properties common to touch and stylus type devices and which aligns with the design of the Pointer Events specification. This allows MouseEvent (which is most appropriate for stylus devices) and TouchEvent to have a common set of properties without requiring duplication. TEST=All existing unit tests pass, newly introduced tests pass. Interactive testing on link shows touch and mouse not impacted. BUG=516706 Committed: https://crrev.com/f62ea41d40ecf774dbb44233252388a55c3cf0ee Cr-Commit-Position: refs/heads/master@{#344250}

Patch Set 1 #

Patch Set 2 : Use a PointerEventDetails structure #

Patch Set 3 : Address build problems, add accessor and unit tests. #

Total comments: 2

Patch Set 4 : Allow manipulation of pointer details after construction #

Total comments: 1

Patch Set 5 : Move mutators to MouseEvent/TouchEvent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -45 lines) Patch
M ui/events/event.h View 1 2 3 4 10 chunks +96 lines, -24 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 7 chunks +24 lines, -21 lines 0 comments Download
M ui/events/event_constants.h View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/events/event_unittest.cc View 1 2 3 4 1 chunk +86 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (7 generated)
robert.bradford
This CL (and the dependent one) is just my first thought about how we could ...
5 years, 4 months ago (2015-07-29 17:27:54 UTC) #2
sadrul
On 2015/07/29 17:27:54, robert.bradford wrote: > This CL (and the dependent one) is just my ...
5 years, 4 months ago (2015-07-30 18:23:45 UTC) #3
Rick Byers
On 2015/07/30 18:23:45, sadrul wrote: > On 2015/07/29 17:27:54, robert.bradford wrote: > > This CL ...
5 years, 4 months ago (2015-07-30 18:31:56 UTC) #4
robert.bradford
> > Do we need a new Event class? Can we instead have a PointerDetails ...
5 years, 4 months ago (2015-08-10 18:51:41 UTC) #5
sadrul
On 2015/08/10 18:51:41, robert.bradford wrote: > > > > Do we need a new Event ...
5 years, 4 months ago (2015-08-11 04:46:37 UTC) #6
sadrul
Also, please file a bug and reference it from BUG=, otherwise we might end up ...
5 years, 4 months ago (2015-08-11 04:48:47 UTC) #7
Rick Byers
The basic approach here seems reasonable to me. I'd caution against over-fitting to the pointer ...
5 years, 4 months ago (2015-08-11 13:44:55 UTC) #10
robert.bradford
sadrul@ please take a look at the latest patch, all the compile problems should be ...
5 years, 4 months ago (2015-08-11 17:48:35 UTC) #12
robert.bradford
Also i've marked this change TBR by pkasting@ and derat@ as i'm not sure it's ...
5 years, 4 months ago (2015-08-11 17:58:48 UTC) #13
sadrul
Sidenote: it's a bit depressing how much non-test code directly synthesizes mouse-events. https://codereview.chromium.org/1260453006/diff/40001/ui/events/event.h File ui/events/event.h ...
5 years, 4 months ago (2015-08-13 15:44:17 UTC) #14
robert.bradford
On 2015/08/13 15:44:17, sadrul wrote: > Sidenote: it's a bit depressing how much non-test code ...
5 years, 4 months ago (2015-08-13 17:42:50 UTC) #15
robert.bradford
Hi sadrul@ WDYT about this latest patch. I s/struct/class/ in alignment with the coding style.
5 years, 4 months ago (2015-08-14 13:45:34 UTC) #16
sadrul
A small change. Otherwise, looks good! https://codereview.chromium.org/1260453006/diff/60001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/1260453006/diff/60001/ui/events/event.h#newcode614 ui/events/event.h:614: PointerDetails* pointer_details() { ...
5 years, 4 months ago (2015-08-17 14:44:43 UTC) #17
robert.bradford
On 2015/08/17 14:44:43, sadrul wrote: > A small change. Otherwise, looks good! > > https://codereview.chromium.org/1260453006/diff/60001/ui/events/event.h ...
5 years, 4 months ago (2015-08-17 16:23:33 UTC) #18
Rick Byers
On 2015/08/17 16:23:33, robert.bradford wrote: > On 2015/08/17 14:44:43, sadrul wrote: > > A small ...
5 years, 4 months ago (2015-08-17 16:33:06 UTC) #19
robert.bradford
On 2015/08/17 16:33:06, Rick Byers wrote: > On 2015/08/17 16:23:33, robert.bradford wrote: > > On ...
5 years, 4 months ago (2015-08-17 16:52:05 UTC) #20
sadrul
LGTM
5 years, 4 months ago (2015-08-18 17:12:53 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260453006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260453006/80001
5 years, 4 months ago (2015-08-19 14:02:34 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-19 15:53:48 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1260453006/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1260453006/80001
5 years, 4 months ago (2015-08-19 16:32:54 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 4 months ago (2015-08-19 16:37:57 UTC) #28
commit-bot: I haz the power
5 years, 4 months ago (2015-08-19 16:38:45 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f62ea41d40ecf774dbb44233252388a55c3cf0ee
Cr-Commit-Position: refs/heads/master@{#344250}

Powered by Google App Engine
This is Rietveld 408576698