OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #include "public/platform/Platform.h" | 46 #include "public/platform/Platform.h" |
47 #include "public/platform/WebRect.h" | 47 #include "public/platform/WebRect.h" |
48 #include "skia/ext/skia_utils_mac.h" | 48 #include "skia/ext/skia_utils_mac.h" |
49 #include "wtf/HashSet.h" | 49 #include "wtf/HashSet.h" |
50 #include "wtf/StdLibExtras.h" | 50 #include "wtf/StdLibExtras.h" |
51 #include "wtf/TemporaryChange.h" | 51 #include "wtf/TemporaryChange.h" |
52 | 52 |
53 // FIXME: There are repainting problems due to Aqua scroll bar buttons' visual o
verflow. | 53 // FIXME: There are repainting problems due to Aqua scroll bar buttons' visual o
verflow. |
54 | 54 |
55 using namespace std; | 55 using namespace std; |
56 using namespace WebCore; | 56 using namespace blink; |
57 | 57 |
58 @interface NSColor (WebNSColorDetails) | 58 @interface NSColor (WebNSColorDetails) |
59 + (NSImage *)_linenPatternImage; | 59 + (NSImage *)_linenPatternImage; |
60 @end | 60 @end |
61 | 61 |
62 namespace WebCore { | 62 namespace blink { |
63 | 63 |
64 typedef HashSet<ScrollbarThemeClient*> ScrollbarSet; | 64 typedef HashSet<ScrollbarThemeClient*> ScrollbarSet; |
65 | 65 |
66 static ScrollbarSet& scrollbarSet() | 66 static ScrollbarSet& scrollbarSet() |
67 { | 67 { |
68 DEFINE_STATIC_LOCAL(ScrollbarSet, set, ()); | 68 DEFINE_STATIC_LOCAL(ScrollbarSet, set, ()); |
69 return set; | 69 return set; |
70 } | 70 } |
71 | 71 |
72 static float gInitialButtonDelay = 0.5f; | 72 static float gInitialButtonDelay = 0.5f; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 354 |
355 // static | 355 // static |
356 bool ScrollbarThemeMacCommon::isOverlayAPIAvailable() | 356 bool ScrollbarThemeMacCommon::isOverlayAPIAvailable() |
357 { | 357 { |
358 static bool apiAvailable = | 358 static bool apiAvailable = |
359 [NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scroll
erImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] | 359 [NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scroll
erImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] |
360 && [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@
selector(scrollerStyle)]; | 360 && [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@
selector(scrollerStyle)]; |
361 return apiAvailable; | 361 return apiAvailable; |
362 } | 362 } |
363 | 363 |
364 } // namespace WebCore | 364 } // namespace blink |
OLD | NEW |