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

Unified Diff: ash/touch/touch_uma.cc

Issue 10824247: Remove GestureEvent interface, and rename GestureEventImpl to GestureEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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_uma.h ('k') | ash/wm/app_list_controller.h » ('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 ca2a8263baff687c3171970288bd5143ec0105b5..a43af467caa74fb4305c85fdd0822cd49c85a411 100644
--- a/ash/touch/touch_uma.cc
+++ b/ash/touch/touch_uma.cc
@@ -89,7 +89,7 @@ DEFINE_OWNED_WINDOW_PROPERTY_KEY(WindowTouchDetails,
NULL);
GestureActionType FindGestureActionType(aura::Window* window,
- const ui::GestureEventImpl& event) {
+ const ui::GestureEvent& event) {
if (!window || window->GetRootWindow() == window) {
if (event.type() == ui::ET_GESTURE_SCROLL_BEGIN)
return GESTURE_BEZEL_SCROLL;
@@ -166,8 +166,8 @@ UMAEventType UMAEventTypeFromEvent(const ui::Event& event) {
case ui::ET_GESTURE_SCROLL_END:
return UMA_ET_GESTURE_SCROLL_END;
case ui::ET_GESTURE_SCROLL_UPDATE: {
- const ui::GestureEventImpl& gesture =
- static_cast<const ui::GestureEventImpl&>(event);
+ const ui::GestureEvent& gesture =
+ static_cast<const ui::GestureEvent&>(event);
if (gesture.details().touch_points() >= 4)
return UMA_ET_GESTURE_SCROLL_UPDATE_4P;
else if (gesture.details().touch_points() == 3)
@@ -193,8 +193,8 @@ UMAEventType UMAEventTypeFromEvent(const ui::Event& event) {
case ui::ET_GESTURE_PINCH_END:
return UMA_ET_GESTURE_PINCH_END;
case ui::ET_GESTURE_PINCH_UPDATE: {
- const ui::GestureEventImpl& gesture =
- static_cast<const ui::GestureEventImpl&>(event);
+ const ui::GestureEvent& gesture =
+ static_cast<const ui::GestureEvent&>(event);
if (gesture.details().touch_points() >= 4)
return UMA_ET_GESTURE_PINCH_UPDATE_4P;
else if (gesture.details().touch_points() == 3)
@@ -204,8 +204,8 @@ UMAEventType UMAEventTypeFromEvent(const ui::Event& event) {
case ui::ET_GESTURE_LONG_PRESS:
return UMA_ET_GESTURE_LONG_PRESS;
case ui::ET_GESTURE_MULTIFINGER_SWIPE: {
- const ui::GestureEventImpl& gesture =
- static_cast<const ui::GestureEventImpl&>(event);
+ const ui::GestureEvent& gesture =
+ static_cast<const ui::GestureEvent&>(event);
if (gesture.details().touch_points() >= 4)
return UMA_ET_GESTURE_MULTIFINGER_SWIPE_4P;
else if (gesture.details().touch_points() == 3)
@@ -235,7 +235,7 @@ TouchUMA::~TouchUMA() {
}
void TouchUMA::RecordGestureEvent(aura::Window* target,
- const ui::GestureEventImpl& event) {
+ const ui::GestureEvent& event) {
UMA_HISTOGRAM_ENUMERATION("Ash.GestureCreated",
UMAEventTypeFromEvent(event),
UMA_ET_COUNT);
« no previous file with comments | « ash/touch/touch_uma.h ('k') | ash/wm/app_list_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698