diff options
author | robert.bradford <robert.bradford@intel.com> | 2016-02-08 13:15:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-08 21:17:29 +0000 |
commit | 287074be50466528acf3452a2fc7a18488730df1 (patch) | |
tree | 97ca70556dd15f27187a24a1f5078ac7cba4ebce /ash/touch/touch_hud_debug.cc | |
parent | 777a567b3eb621aee86242a4483d1066c47eba2c (diff) | |
download | chromium_src-287074be50466528acf3452a2fc7a18488730df1.zip chromium_src-287074be50466528acf3452a2fc7a18488730df1.tar.gz chromium_src-287074be50466528acf3452a2fc7a18488730df1.tar.bz2 |
ui: Make PointerDetails a struct
This allows the updating of the members directly which will allow the
propagation of pointer type for on-screen stylus devices and also
permit the removal of TouchEvent::set_radius_x/y and
MouseEvent::set_pointer_details. For reviewability this CL only contains
the migration from class to struct and the switch from accessors to
direct member access. A follow-up CL with contain the refactoring.
The special case of using non-zero radius if the other is not present is
now handled in the constructor. This is tested with the existing tests
in event_unittests.
BUG=519337, 575162
TEST=Everything compiles and events_unittests passes.
TBR=rockot@chromium.org,elijahtaylor@chromium.org,oshima@chromium.org
Review URL: https://codereview.chromium.org/1675663003
Cr-Commit-Position: refs/heads/master@{#374172}
Diffstat (limited to 'ash/touch/touch_hud_debug.cc')
-rw-r--r-- | ash/touch/touch_hud_debug.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/touch/touch_hud_debug.cc b/ash/touch/touch_hud_debug.cc index 5c85f5f..099233b 100644 --- a/ash/touch/touch_hud_debug.cc +++ b/ash/touch/touch_hud_debug.cc @@ -93,9 +93,9 @@ struct TouchPointLog { type(touch.type()), location(touch.root_location()), timestamp(touch.time_stamp().InMillisecondsF()), - radius_x(touch.pointer_details().radius_x()), - radius_y(touch.pointer_details().radius_y()), - pressure(touch.pointer_details().force()), + radius_x(touch.pointer_details().radius_x), + radius_y(touch.pointer_details().radius_y), + pressure(touch.pointer_details().force), tracking_id(GetTrackingId(touch)), source_device(touch.source_device_id()) {} |