OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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" | |
11 #include "ui/base/accelerators/accelerator_cocoa.h" | 10 #include "ui/base/accelerators/accelerator_cocoa.h" |
12 | 11 |
13 @class ConfirmQuitFrameView; | 12 @class ConfirmQuitFrameView; |
14 | 13 |
15 // The ConfirmQuitPanelController manages the black HUD window that tells users | 14 // The ConfirmQuitPanelController manages the black HUD window that tells users |
16 // to "Hold Cmd+Q to Quit". | 15 // to "Hold Cmd+Q to Quit". |
17 @interface ConfirmQuitPanelController : NSWindowController<NSWindowDelegate> { | 16 @interface ConfirmQuitPanelController : NSWindowController<NSWindowDelegate> { |
18 @private | 17 @private |
19 // The content view of the window that this controller manages. | 18 // The content view of the window that this controller manages. |
20 ConfirmQuitFrameView* contentView_; // Weak, owned by the window. | 19 ConfirmQuitFrameView* contentView_; // Weak, owned by the window. |
(...skipping 24 matching lines...) Expand all Loading... |
45 // Returns a string representation fit for display of |+quitAccelerator|. | 44 // Returns a string representation fit for display of |+quitAccelerator|. |
46 + (NSString*)keyCommandString; | 45 + (NSString*)keyCommandString; |
47 | 46 |
48 @end | 47 @end |
49 | 48 |
50 @interface ConfirmQuitPanelController (UnitTesting) | 49 @interface ConfirmQuitPanelController (UnitTesting) |
51 + (NSString*)keyCombinationForAccelerator:(const ui::AcceleratorCocoa&)item; | 50 + (NSString*)keyCombinationForAccelerator:(const ui::AcceleratorCocoa&)item; |
52 @end | 51 @end |
53 | 52 |
54 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ | 53 #endif // CHROME_BROWSER_UI_COCOA_CONFIRM_QUIT_PANEL_CONTROLLER_H_ |
OLD | NEW |