summaryrefslogtreecommitdiffstats
path: root/ash/touch/touch_hud_debug.cc
diff options
context:
space:
mode:
authorrobert.bradford <robert.bradford@intel.com>2016-02-08 13:15:00 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-08 21:17:29 +0000
commit287074be50466528acf3452a2fc7a18488730df1 (patch)
tree97ca70556dd15f27187a24a1f5078ac7cba4ebce /ash/touch/touch_hud_debug.cc
parent777a567b3eb621aee86242a4483d1066c47eba2c (diff)
downloadchromium_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.cc6
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()) {}