From 3537d47b8e8f842d1c83a739e353ee9b97ee436f Mon Sep 17 00:00:00 2001 From: "pkotwicz@chromium.org" Date: Wed, 15 Jan 2014 05:45:31 +0000 Subject: Use a single ToplevelWindowEventHandler for the ash::Shell. This is part 1 in disabling the few cases in which dragging multiple windows is possible (which causes crashiness) BUG=324038 TEST=None R=oshima TBR=sadrul (This is a reland of https://codereview.chromium.org/114643003) Review URL: https://codereview.chromium.org/102253008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244835 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/metrics/user_metrics_recorder.cc | 8 ++++++++ ash/metrics/user_metrics_recorder.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'ash/metrics') diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc index 7e46801..fb67e4c 100644 --- a/ash/metrics/user_metrics_recorder.cc +++ b/ash/metrics/user_metrics_recorder.cc @@ -79,6 +79,14 @@ void UserMetricsRecorder::RecordUserMetricsAction(UserMetricsAction action) { case ash::UMA_MOUSE_DOWN: base::RecordAction(base::UserMetricsAction("Mouse_Down")); break; + case ash::UMA_PANEL_MINIMIZE_CAPTION_CLICK: + base::RecordAction( + base::UserMetricsAction("Panel_Minimize_Caption_Click")); + break; + case ash::UMA_PANEL_MINIMIZE_CAPTION_GESTURE: + base::RecordAction( + base::UserMetricsAction("Panel_Minimize_Caption_Gesture")); + break; case ash::UMA_SHELF_ALIGNMENT_SET_BOTTOM: base::RecordAction( base::UserMetricsAction("Shelf_AlignmentSetBottom")); diff --git a/ash/metrics/user_metrics_recorder.h b/ash/metrics/user_metrics_recorder.h index dc7043b..bf82ef5 100644 --- a/ash/metrics/user_metrics_recorder.h +++ b/ash/metrics/user_metrics_recorder.h @@ -25,6 +25,8 @@ enum UserMetricsAction { UMA_LAUNCHER_CLICK_ON_APP, UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON, UMA_MOUSE_DOWN, + UMA_PANEL_MINIMIZE_CAPTION_CLICK, + UMA_PANEL_MINIMIZE_CAPTION_GESTURE, UMA_SHELF_ALIGNMENT_SET_BOTTOM, UMA_SHELF_ALIGNMENT_SET_LEFT, UMA_SHELF_ALIGNMENT_SET_RIGHT, -- cgit v1.1