OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) | 3 * (C) 2007 Graham Dennis (graham.dennis@gmail.com) |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 [defaults setObject:@"DoubleMax" forKey:@"AppleScrollBarVariant"]; | 583 [defaults setObject:@"DoubleMax" forKey:@"AppleScrollBarVariant"]; |
584 RetainPtr<CFTypeRef> initialValue = CFPreferencesCopyValue(CFSTR("AppleScrol
lBarVariant"), kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPrefe
rencesAnyHost); | 584 RetainPtr<CFTypeRef> initialValue = CFPreferencesCopyValue(CFSTR("AppleScrol
lBarVariant"), kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPrefe
rencesAnyHost); |
585 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), CFSTR("DoubleMax"), kC
FPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); | 585 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), CFSTR("DoubleMax"), kC
FPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); |
586 #ifndef __LP64__ | 586 #ifndef __LP64__ |
587 // See <rdar://problem/6347388>. | 587 // See <rdar://problem/6347388>. |
588 ThemeScrollBarArrowStyle style; | 588 ThemeScrollBarArrowStyle style; |
589 GetThemeScrollBarArrowStyle(&style); // Force HIToolbox to read from CFPrefe
rences | 589 GetThemeScrollBarArrowStyle(&style); // Force HIToolbox to read from CFPrefe
rences |
590 #endif | 590 #endif |
591 | 591 |
592 | 592 |
593 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) | 593 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) && !PLATFOR
M(CHROMIUM) |
594 [defaults setBool:NO forKey:@"NSScrollAnimationEnabled"]; | 594 [defaults setBool:NO forKey:@"NSScrollAnimationEnabled"]; |
595 #else | 595 #else |
596 [defaults setBool:NO forKey:@"AppleScrollAnimationEnabled"]; | 596 [defaults setBool:NO forKey:@"AppleScrollAnimationEnabled"]; |
597 #endif | 597 #endif |
598 | 598 |
599 [defaults setBool:NO forKey:@"NSOverlayScrollersEnabled"]; | 599 [defaults setBool:NO forKey:@"NSOverlayScrollersEnabled"]; |
600 [defaults setObject:@"Always" forKey:@"AppleShowScrollBars"]; | 600 [defaults setObject:@"Always" forKey:@"AppleShowScrollBars"]; |
601 | 601 |
602 if (initialValue) | 602 if (initialValue) |
603 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), initialValue.get()
, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost
); | 603 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), initialValue.get()
, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost
); |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 | 1436 |
1437 @implementation DumpRenderTreeApplication | 1437 @implementation DumpRenderTreeApplication |
1438 | 1438 |
1439 - (BOOL)isRunning | 1439 - (BOOL)isRunning |
1440 { | 1440 { |
1441 // <rdar://problem/7686123> Java plug-in freezes unless NSApplication is run
ning | 1441 // <rdar://problem/7686123> Java plug-in freezes unless NSApplication is run
ning |
1442 return YES; | 1442 return YES; |
1443 } | 1443 } |
1444 | 1444 |
1445 @end | 1445 @end |
OLD | NEW |