Chromium Code Reviews| Index: ash/wm/workspace/frame_maximize_button.cc |
| diff --git a/ash/wm/workspace/frame_maximize_button.cc b/ash/wm/workspace/frame_maximize_button.cc |
| index 0329e3f6d4668e5342a2586f4d061dd017991c69..ebc1c4a978f4327be5d9353c5214d0d616841add 100644 |
| --- a/ash/wm/workspace/frame_maximize_button.cc |
| +++ b/ash/wm/workspace/frame_maximize_button.cc |
| @@ -9,6 +9,7 @@ |
| #include "ash/shelf/shelf_widget.h" |
| #include "ash/shell.h" |
| #include "ash/shell_delegate.h" |
| +#include "ash/touch/touch_uma.h" |
| #include "ash/wm/maximize_bubble_controller.h" |
| #include "ash/wm/property_util.h" |
| #include "ash/wm/window_properties.h" |
| @@ -27,6 +28,7 @@ |
| #include "ui/views/window/non_client_view.h" |
| using ash::internal::SnapSizer; |
| +using ash::internal::TouchUMA; |
| namespace ash { |
| @@ -279,8 +281,13 @@ void FrameMaximizeButton::OnGestureEvent(ui::GestureEvent* event) { |
| // for TAP and SCROLL_END). So it is necessary to update the snap-state for |
| // the current event. |
| ProcessUpdateEvent(*event); |
| - if (event->type() == ui::ET_GESTURE_TAP) |
| + if (event->type() == ui::ET_GESTURE_TAP) { |
| snap_type_ = SnapTypeForLocation(event->location()); |
| +#if defined(USE_ASH) |
|
sky
2013/06/26 23:42:55
This is in ash, you shouldn't need the ifdef.
tdanderson
2013/06/27 22:39:33
Done.
|
| + TouchUMA::GetInstance()->RecordGestureAction( |
| + TouchUMA::GESTURE_FRAMEMAXIMIZE_TAP); |
| +#endif |
| + } |
| ProcessEndEvent(*event); |
| event->SetHandled(); |
| return; |