| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #import "base/mac/cocoa_protocols.h" | 10 #import "base/mac/cocoa_protocols.h" |
| 11 #include "ui/base/models/accelerator_cocoa.h" | 11 #include "ui/base/accelerators/accelerator_cocoa.h" |
| 12 | 12 |
| 13 @class ConfirmQuitFrameView; | 13 @class ConfirmQuitFrameView; |
| 14 | 14 |
| 15 namespace confirm_quit { | 15 namespace confirm_quit { |
| 16 | 16 |
| 17 enum ConfirmQuitMetric { | 17 enum ConfirmQuitMetric { |
| 18 // The user quit without having the feature enabled. | 18 // The user quit without having the feature enabled. |
| 19 kNoConfirm = 0, | 19 kNoConfirm = 0, |
| 20 // The user held Cmd+Q for the entire duration. | 20 // The user held Cmd+Q for the entire duration. |
| 21 kHoldDuration, | 21 kHoldDuration, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 // Returns a string representation fit for display of |+quitAccelerator|. | 65 // Returns a string representation fit for display of |+quitAccelerator|. |
| 66 + (NSString*)keyCommandString; | 66 + (NSString*)keyCommandString; |
| 67 | 67 |
| 68 @end | 68 @end |
| 69 | 69 |
| 70 @interface ConfirmQuitPanelController (UnitTesting) | 70 @interface ConfirmQuitPanelController (UnitTesting) |
| 71 + (NSString*)keyCombinationForAccelerator:(const ui::AcceleratorCocoa&)item; | 71 + (NSString*)keyCombinationForAccelerator:(const ui::AcceleratorCocoa&)item; |
| 72 @end | 72 @end |
| 73 | 73 |
| 74 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ | 74 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ |
| OLD | NEW |