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

Side by Side Diff: chrome/browser/ui/cocoa/confirm_quit_panel_controller.h

Issue 8695005: Move accelerator related files to ui/base/accelerators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698