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

Issue 412553005: Scale touch event radius (Closed)

Created:
6 years, 5 months ago by Yufeng Shen (Slow to review)
Modified:
6 years, 5 months ago
Reviewers:
sadrul, oshima
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tdresser, Rick Byers
Project:
chromium
Visibility:
Public.

Description

Scale touch event radius Touch event's position resolution could be quite different than the display's resolution, e.g. the display could be set as 1920x1080 while the touchscreen is reporting touch position range at 32767x32767. Touch event's radius is reported in the units the same as touch position. While we are doing touch position scaling, we should also do the same for touch radius. BUG=392172, 233245 TEST=touch radius is scaled to be reasonable value for HP 23TM touch monitor. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285132

Patch Set 1 #

Patch Set 2 : better formatting #

Total comments: 2

Patch Set 3 : rename GetTouchRadiusScale to GetTouchResolutionScale #

Total comments: 2

Patch Set 4 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -99 lines) Patch
M ash/display/event_transformation_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/display/event_transformation_handler.cc View 2 chunks +0 lines, -93 lines 0 comments Download
M ash/touch/touch_transformer_controller.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ash/touch/touch_transformer_controller.cc View 1 2 3 chunks +54 lines, -0 lines 0 comments Download
M ash/touch/touch_transformer_controller_unittest.cc View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M ui/events/device_data_manager.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/events/device_data_manager.cc View 3 chunks +16 lines, -1 line 0 comments Download
M ui/events/x/device_data_manager_x11.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/x/device_data_manager_x11.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/x/events_x.cc View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yufeng Shen (Slow to review)
6 years, 5 months ago (2014-07-22 19:23:39 UTC) #1
oshima
ash/ lgtm with a nit https://codereview.chromium.org/412553005/diff/20001/ash/touch/touch_transformer_controller.cc File ash/touch/touch_transformer_controller.cc (right): https://codereview.chromium.org/412553005/diff/20001/ash/touch/touch_transformer_controller.cc#newcode37 ash/touch/touch_transformer_controller.cc:37: double TouchTransformerController::GetTouchRadiusScale( Maybe TouchResolutionScale ...
6 years, 5 months ago (2014-07-22 21:41:18 UTC) #2
Yufeng Shen (Slow to review)
https://codereview.chromium.org/412553005/diff/20001/ash/touch/touch_transformer_controller.cc File ash/touch/touch_transformer_controller.cc (right): https://codereview.chromium.org/412553005/diff/20001/ash/touch/touch_transformer_controller.cc#newcode37 ash/touch/touch_transformer_controller.cc:37: double TouchTransformerController::GetTouchRadiusScale( On 2014/07/22 21:41:18, oshima wrote: > Maybe ...
6 years, 5 months ago (2014-07-22 21:52:04 UTC) #3
sadrul
A few questions: (1) what kind of changes would we need in athena for this ...
6 years, 5 months ago (2014-07-22 22:29:58 UTC) #4
Yufeng Shen (Slow to review)
On 2014/07/22 22:29:58, sadrul wrote: > A few questions: (1) what kind of changes would ...
6 years, 5 months ago (2014-07-22 23:03:15 UTC) #5
sadrul
LGTM. Thanks for explaining. https://codereview.chromium.org/412553005/diff/40001/ui/events/x/events_x.cc File ui/events/x/events_x.cc (right): https://codereview.chromium.org/412553005/diff/40001/ui/events/x/events_x.cc#newcode290 ui/events/x/events_x.cc:290: if (xev->type != GenericEvent) Make ...
6 years, 5 months ago (2014-07-23 18:40:17 UTC) #6
Yufeng Shen (Slow to review)
https://codereview.chromium.org/412553005/diff/40001/ui/events/x/events_x.cc File ui/events/x/events_x.cc (right): https://codereview.chromium.org/412553005/diff/40001/ui/events/x/events_x.cc#newcode290 ui/events/x/events_x.cc:290: if (xev->type != GenericEvent) On 2014/07/23 18:40:16, sadrul wrote: ...
6 years, 5 months ago (2014-07-23 19:11:20 UTC) #7
Yufeng Shen (Slow to review)
The CQ bit was checked by miletus@chromium.org
6 years, 5 months ago (2014-07-23 19:11:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/412553005/60001
6 years, 5 months ago (2014-07-23 19:14:37 UTC) #9
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 03:00:25 UTC) #10
Message was sent while issue was closed.
Change committed as 285132

Powered by Google App Engine
This is Rietveld 408576698