BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / confirm_quit.h
blob36aa3302b89d606811912d5c37231211eda78518
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_H_
6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_H_
8 class PrefRegistrySimple;
10 namespace confirm_quit {
12 enum ConfirmQuitMetric {
13 // The user quit without having the feature enabled.
14 kNoConfirm = 0,
15 // The user held Cmd+Q for the entire duration.
16 kHoldDuration,
17 // The user hit Cmd+Q twice for the accelerated path.
18 kDoubleTap,
19 // The user tapped Cmd+Q once and then held it.
20 kTapHold,
22 kSampleCount
25 // Records the histogram value for the above metric.
26 void RecordHistogram(ConfirmQuitMetric sample);
28 // Registers the preference in app-wide local state.
29 void RegisterLocalState(PrefRegistrySimple* registry);
31 } // namespace confirm_quit
33 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_H_