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

Side by Side Diff: gm/system_preferences_mac.mm

Issue 1286133004: A bit of misc cleanup. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « gm/system_preferences_default.cpp ('k') | gm/techtalk1.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "system_preferences.h"
9
10 #import <Cocoa/Cocoa.h>
11
12 void setSystemPreferences() {
13 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
14
15 // Set LCD font smoothing level for this application (does not affect other
16 // applications). Based on resetDefaultsToConsistentValues() in
17 // http://trac.webkit.org/browser/trunk/Tools/DumpRenderTree/mac/DumpRenderT ree.mm
18 enum {
19 NoFontSmoothing = 0,
20 LightFontSmoothing = 1,
21 MediumFontSmoothing = 2,
22 StrongFontSmoothing = 3,
23 };
24 NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
25 [defaults setInteger:MediumFontSmoothing forKey:@"AppleFontSmoothing"];
26
27 [pool release];
28 }
OLDNEW
« no previous file with comments | « gm/system_preferences_default.cpp ('k') | gm/techtalk1.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698