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

Issue 822803005: Correct missing radius in ui::TouchEvent. (Closed)

Created:
5 years, 11 months ago by tdresser
Modified:
5 years, 11 months ago
Reviewers:
jdduke (slow), sadrul
CC:
chromium-reviews, darin-cc_chromium.org, jdduke+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Correct missing radius in ui::TouchEvent. If a ui::TouchEvent is missing a radius on one axis, use the value from the other axis. BUG=406004 Committed: https://crrev.com/15625947d71cacfefca735fe4d4959e1bbbf221f Cr-Commit-Position: refs/heads/master@{#311352}

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK touch minor <= touch major #

Total comments: 1

Patch Set 3 : Cleanup data at ui::TouchEvent level. #

Total comments: 2

Patch Set 4 : Fix DCHECK. #

Total comments: 2

Patch Set 5 : Fix case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M content/browser/renderer_host/input/web_input_event_util.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/event.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M ui/events/event_unittest.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
tdresser
As I indicated in the bug, for some reason I was thinking this already happened ...
5 years, 11 months ago (2015-01-13 15:16:09 UTC) #2
jdduke (slow)
https://codereview.chromium.org/822803005/diff/1/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/822803005/diff/1/content/browser/renderer_host/input/web_input_event_util.cc#newcode216 content/browser/renderer_host/input/web_input_event_util.cc:216: else if (major_radius == 0) This shouldn't happen, should ...
5 years, 11 months ago (2015-01-13 15:50:26 UTC) #3
tdresser
https://codereview.chromium.org/822803005/diff/1/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/822803005/diff/1/content/browser/renderer_host/input/web_input_event_util.cc#newcode216 content/browser/renderer_host/input/web_input_event_util.cc:216: else if (major_radius == 0) On 2015/01/13 15:50:25, jdduke ...
5 years, 11 months ago (2015-01-13 19:22:08 UTC) #4
jdduke (slow)
lgtm, though I'd almost prefer if this were fixed upstream where the underlying ui::TouchEvents are ...
5 years, 11 months ago (2015-01-13 19:31:26 UTC) #5
tdresser
On 2015/01/13 19:31:26, jdduke wrote: > lgtm, though I'd almost prefer if this were fixed ...
5 years, 11 months ago (2015-01-13 21:04:43 UTC) #6
jdduke (slow)
https://codereview.chromium.org/822803005/diff/40001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/822803005/diff/40001/content/browser/renderer_host/input/web_input_event_util.cc#newcode215 content/browser/renderer_host/input/web_input_event_util.cc:215: DCHECK_GT(major_radius, 0); I'm not sure we can assume that ...
5 years, 11 months ago (2015-01-13 21:08:28 UTC) #7
tdresser
sadrul, can you take a look at ui/?
5 years, 11 months ago (2015-01-13 21:29:54 UTC) #9
sadrul
lgtm https://codereview.chromium.org/822803005/diff/60001/ui/events/event_unittest.cc File ui/events/event_unittest.cc (right): https://codereview.chromium.org/822803005/diff/60001/ui/events/event_unittest.cc#newcode504 ui/events/event_unittest.cc:504: const float nonZeroLength2 = 46; non_zero_length*
5 years, 11 months ago (2015-01-13 21:32:42 UTC) #10
tdresser
https://codereview.chromium.org/822803005/diff/60001/ui/events/event_unittest.cc File ui/events/event_unittest.cc (right): https://codereview.chromium.org/822803005/diff/60001/ui/events/event_unittest.cc#newcode504 ui/events/event_unittest.cc:504: const float nonZeroLength2 = 46; On 2015/01/13 21:32:42, sadrul ...
5 years, 11 months ago (2015-01-13 21:44:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822803005/80001
5 years, 11 months ago (2015-01-13 21:45:39 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-13 22:37:33 UTC) #14
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 22:39:02 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/15625947d71cacfefca735fe4d4959e1bbbf221f
Cr-Commit-Position: refs/heads/master@{#311352}

Powered by Google App Engine
This is Rietveld 408576698