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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 #include "public/platform/WebThemeEngine.h" | 45 #include "public/platform/WebThemeEngine.h" |
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; | |
56 using namespace blink; | 55 using namespace blink; |
57 | 56 |
58 @interface NSColor (WebNSColorDetails) | 57 @interface NSColor (WebNSColorDetails) |
59 + (NSImage *)_linenPatternImage; | 58 + (NSImage *)_linenPatternImage; |
60 @end | 59 @end |
61 | 60 |
62 namespace blink { | 61 namespace blink { |
63 | 62 |
64 typedef HashSet<ScrollbarThemeClient*> ScrollbarSet; | 63 typedef HashSet<ScrollbarThemeClient*> ScrollbarSet; |
65 | 64 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // static | 354 // static |
356 bool ScrollbarThemeMacCommon::isOverlayAPIAvailable() | 355 bool ScrollbarThemeMacCommon::isOverlayAPIAvailable() |
357 { | 356 { |
358 static bool apiAvailable = | 357 static bool apiAvailable = |
359 [NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scroll
erImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] | 358 [NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scroll
erImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] |
360 && [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@
selector(scrollerStyle)]; | 359 && [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@
selector(scrollerStyle)]; |
361 return apiAvailable; | 360 return apiAvailable; |
362 } | 361 } |
363 | 362 |
364 } // namespace blink | 363 } // namespace blink |
OLD | NEW |