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

Unified Diff: ash/touch/touch_uma.cc

Issue 1300803003: Drop ui::TouchEvent shims for radius_{x,y} and force (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/touch/touch_hud_debug.cc ('k') | mojo/converters/input_events/input_events_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_uma.cc
diff --git a/ash/touch/touch_uma.cc b/ash/touch/touch_uma.cc
index 9ab7ba41847aae438fa86ddeb3e082301874615c..0d35c0629a2114ca7f8982f90a9cbf1b1f808399 100644
--- a/ash/touch/touch_uma.cc
+++ b/ash/touch/touch_uma.cc
@@ -81,8 +81,10 @@ void TouchUMA::RecordGestureAction(GestureActionType action) {
void TouchUMA::RecordTouchEvent(aura::Window* target,
const ui::TouchEvent& event) {
- UMA_HISTOGRAM_CUSTOM_COUNTS("Ash.TouchRadius",
- static_cast<int>(std::max(event.radius_x(), event.radius_y())),
+ UMA_HISTOGRAM_CUSTOM_COUNTS(
+ "Ash.TouchRadius",
+ static_cast<int>(std::max(event.pointer_details().radius_x(),
+ event.pointer_details().radius_y())),
1, 500, 100);
UpdateTouchState(event);
« no previous file with comments | « ash/touch/touch_hud_debug.cc ('k') | mojo/converters/input_events/input_events_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698