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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 7 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 #import <QuartzCore/QuartzCore.h> 6 #import <QuartzCore/QuartzCore.h>
7 7
8 #import "chrome/browser/ui/cocoa/confirm_quit_panel_controller.h" 8 #import "chrome/browser/ui/cocoa/confirm_quit_panel_controller.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 27 matching lines...) Expand all
38 const NSTimeInterval kDoubleTapTimeDelta = 0.32; 38 const NSTimeInterval kDoubleTapTimeDelta = 0.32;
39 39
40 // Functions /////////////////////////////////////////////////////////////////// 40 // Functions ///////////////////////////////////////////////////////////////////
41 41
42 namespace confirm_quit { 42 namespace confirm_quit {
43 43
44 void RecordHistogram(ConfirmQuitMetric sample) { 44 void RecordHistogram(ConfirmQuitMetric sample) {
45 UMA_HISTOGRAM_ENUMERATION("OSX.ConfirmToQuit", sample, kSampleCount); 45 UMA_HISTOGRAM_ENUMERATION("OSX.ConfirmToQuit", sample, kSampleCount);
46 } 46 }
47 47
48 void RegisterLocalState(PrefService* local_state) { 48 void RegisterLocalState(PrefServiceSimple* local_state) {
49 local_state->RegisterBooleanPref(prefs::kConfirmToQuitEnabled, false); 49 local_state->RegisterBooleanPref(prefs::kConfirmToQuitEnabled, false);
50 } 50 }
51 51
52 } // namespace confirm_quit 52 } // namespace confirm_quit
53 53
54 // Custom Content View ///////////////////////////////////////////////////////// 54 // Custom Content View /////////////////////////////////////////////////////////
55 55
56 // The content view of the window that draws a custom frame. 56 // The content view of the window that draws a custom frame.
57 @interface ConfirmQuitFrameView : NSView { 57 @interface ConfirmQuitFrameView : NSView {
58 @private 58 @private
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 if (modifiers & NSAlternateKeyMask) 415 if (modifiers & NSAlternateKeyMask)
416 [string appendString:@"\u2325"]; 416 [string appendString:@"\u2325"];
417 if (modifiers & NSShiftKeyMask) 417 if (modifiers & NSShiftKeyMask)
418 [string appendString:@"\u21E7"]; 418 [string appendString:@"\u21E7"];
419 419
420 [string appendString:[item.characters() uppercaseString]]; 420 [string appendString:[item.characters() uppercaseString]];
421 return string; 421 return string;
422 } 422 }
423 423
424 @end 424 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_quit.h ('k') | chrome/browser/ui/cocoa/extensions/browser_actions_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698