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

Unified Diff: chrome/browser/ui/cocoa/confirm_quit_panel_controller.h

Issue 6794030: [Mac] Confirm-to-quit: Add histogram metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
diff --git a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
index 88b66f3044155160ab10b7f69117c323c29efbaa..8a1816d45a779112fedb58890c9bf5674a560dcc 100644
--- a/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
+++ b/chrome/browser/ui/cocoa/confirm_quit_panel_controller.h
@@ -12,6 +12,26 @@
@class ConfirmQuitFrameView;
+namespace confirm_quit {
+
+enum ConfirmQuitMetric {
+ // The user quit without having the feature enabled.
+ kNoConfirm = 0,
+ // The user held Cmd+Q for the entire duration.
+ kHoldDuration,
+ // The user hit Cmd+Q twice for the accelerated path.
+ kDoubleTap,
+ // The user tapped Cmd+Q once and then held it.
+ kTapHold,
+
+ kSampleCount
+};
+
+// Records the histogram value for the above metric.
+void RecordHistogram(ConfirmQuitMetric sample);
+
+} // namespace confirm_quit
+
// The ConfirmQuitPanelController manages the black HUD window that tells users
// to "Hold Cmd+Q to Quit".
@interface ConfirmQuitPanelController : NSWindowController<NSWindowDelegate> {
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/ui/cocoa/confirm_quit_panel_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698