| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/touch/touch_uma.h" | 5 #include "ash/touch/touch_uma.h" |
| 6 | 6 |
| 7 #include "ash/shell_delegate.h" | 7 #include "ash/shell_delegate.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "ui/aura/root_window.h" | 10 #include "ui/aura/root_window.h" |
| 11 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 12 #include "ui/aura/window_property.h" | 12 #include "ui/aura/window_property.h" |
| 13 #include "ui/base/event.h" | 13 #include "ui/base/events/event.h" |
| 14 | 14 |
| 15 #if defined(USE_XI2_MT) | 15 #if defined(USE_XI2_MT) |
| 16 #include <X11/extensions/XInput2.h> | 16 #include <X11/extensions/XInput2.h> |
| 17 #include <X11/Xlib.h> | 17 #include <X11/Xlib.h> |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 enum GestureActionType { | 22 enum GestureActionType { |
| 23 GESTURE_UNKNOWN, | 23 GESTURE_UNKNOWN, |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 UMA_HISTOGRAM_CUSTOM_COUNTS("Ash.TouchMoveSteps", distance, 1, 1000, 50); | 374 UMA_HISTOGRAM_CUSTOM_COUNTS("Ash.TouchMoveSteps", distance, 1, 1000, 50); |
| 375 | 375 |
| 376 details->last_move_time_[event.touch_id()] = event.time_stamp(); | 376 details->last_move_time_[event.touch_id()] = event.time_stamp(); |
| 377 details->last_touch_position_[event.touch_id()] = event.location(); | 377 details->last_touch_position_[event.touch_id()] = event.location(); |
| 378 } | 378 } |
| 379 } | 379 } |
| 380 | 380 |
| 381 } // namespace internal | 381 } // namespace internal |
| 382 } // namespace ash | 382 } // namespace ash |
| OLD | NEW |