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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 [defaults setObject:@"DoubleMax" forKey:@"AppleScrollBarVariant"]; | 582 [defaults setObject:@"DoubleMax" forKey:@"AppleScrollBarVariant"]; |
583 RetainPtr<CFTypeRef> initialValue = CFPreferencesCopyValue(CFSTR("AppleScrol
lBarVariant"), kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPrefe
rencesAnyHost); | 583 RetainPtr<CFTypeRef> initialValue = CFPreferencesCopyValue(CFSTR("AppleScrol
lBarVariant"), kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPrefe
rencesAnyHost); |
584 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), CFSTR("DoubleMax"), kC
FPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); | 584 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), CFSTR("DoubleMax"), kC
FPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); |
585 #ifndef __LP64__ | 585 #ifndef __LP64__ |
586 // See <rdar://problem/6347388>. | 586 // See <rdar://problem/6347388>. |
587 ThemeScrollBarArrowStyle style; | 587 ThemeScrollBarArrowStyle style; |
588 GetThemeScrollBarArrowStyle(&style); // Force HIToolbox to read from CFPrefe
rences | 588 GetThemeScrollBarArrowStyle(&style); // Force HIToolbox to read from CFPrefe
rences |
589 #endif | 589 #endif |
590 | 590 |
591 | 591 |
592 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) | 592 #if !defined(BUILDING_ON_SNOW_LEOPARD) && !defined(BUILDING_ON_LION) && !PLATFOR
M(CHROMIUM) |
593 [defaults setBool:NO forKey:@"NSScrollAnimationEnabled"]; | 593 [defaults setBool:NO forKey:@"NSScrollAnimationEnabled"]; |
594 #else | 594 #else |
595 [defaults setBool:NO forKey:@"AppleScrollAnimationEnabled"]; | 595 [defaults setBool:NO forKey:@"AppleScrollAnimationEnabled"]; |
596 #endif | 596 #endif |
597 | 597 |
598 [defaults setBool:NO forKey:@"NSOverlayScrollersEnabled"]; | 598 [defaults setBool:NO forKey:@"NSOverlayScrollersEnabled"]; |
599 [defaults setObject:@"Always" forKey:@"AppleShowScrollBars"]; | 599 [defaults setObject:@"Always" forKey:@"AppleShowScrollBars"]; |
600 | 600 |
601 if (initialValue) | 601 if (initialValue) |
602 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), initialValue.get()
, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost
); | 602 CFPreferencesSetValue(CFSTR("AppleScrollBarVariant"), initialValue.get()
, kCFPreferencesAnyApplication, kCFPreferencesCurrentUser, kCFPreferencesAnyHost
); |
(...skipping 833 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 |