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

Unified Diff: ash/wm/workspace/frame_maximize_button.cc

Issue 16832003: Add UMA metrics to measure the effectiveness of views fuzzing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 7 years, 6 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
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;

Powered by Google App Engine
This is Rietveld 408576698