| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/app/mac/mac_init.h" | 5 #include "content/app/mac/mac_init.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| 11 void InitializeMac() { | 11 void InitializeMac() { |
| 12 [[NSUserDefaults standardUserDefaults] registerDefaults:@{ | 12 [[NSUserDefaults standardUserDefaults] registerDefaults:@{ |
| 13 // Exceptions routed to -[NSApplication reportException:] should crash | 13 // Exceptions routed to -[NSApplication reportException:] should crash |
| 14 // immediately, as opposed being swallowed or presenting UI that gives the | 14 // immediately, as opposed being swallowed or presenting UI that gives the |
| 15 // user a choice in the matter. | 15 // user a choice in the matter. |
| 16 @"NSApplicationCrashOnExceptions": @YES, | 16 @"NSApplicationCrashOnExceptions": @YES, |
| 17 | 17 |
| 18 // Prevent Cocoa from turning command-line arguments into -[NSApplication | 18 // Prevent Cocoa from turning command-line arguments into -[NSApplication |
| 19 // application:openFile:], because they are handled directly. @"NO" looks | 19 // application:openFile:], because they are handled directly. @"NO" looks |
| 20 // like a mistake, but the value really is supposed to be a string. | 20 // like a mistake, but the value really is supposed to be a string. |
| 21 @"NSTreatUnknownArgumentsAsOpen": @"NO", | 21 @"NSTreatUnknownArgumentsAsOpen": @"NO", |
| 22 | |
| 23 // CoreAnimation has poor performance and CoreAnimation and | |
| 24 // non-CoreAnimation exhibit window flickering when layers are not hosted | |
| 25 // in the window server, which is the default when not not using the | |
| 26 // 10.9 SDK. | |
| 27 // TODO: Remove this when we build with the 10.9 SDK. | |
| 28 @"NSWindowHostsLayersInWindowServer": @YES | |
| 29 }]; | 22 }]; |
| 30 } | 23 } |
| 31 | 24 |
| 32 } // namespace content | 25 } // namespace content |
| OLD | NEW |