| 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 23 matching lines...) Expand all Loading... |
| 34 #include "platform/graphics/GraphicsContextStateSaver.h" | 34 #include "platform/graphics/GraphicsContextStateSaver.h" |
| 35 #include "platform/graphics/GraphicsLayer.h" | 35 #include "platform/graphics/GraphicsLayer.h" |
| 36 #include "platform/graphics/ImageBuffer.h" | 36 #include "platform/graphics/ImageBuffer.h" |
| 37 #include "platform/mac/ColorMac.h" | 37 #include "platform/mac/ColorMac.h" |
| 38 #include "platform/mac/LocalCurrentGraphicsContext.h" | 38 #include "platform/mac/LocalCurrentGraphicsContext.h" |
| 39 #include "platform/mac/NSScrollerImpDetails.h" | 39 #include "platform/mac/NSScrollerImpDetails.h" |
| 40 #include "platform/mac/ScrollAnimatorMac.h" | 40 #include "platform/mac/ScrollAnimatorMac.h" |
| 41 #include "platform/scroll/ScrollbarThemeClient.h" | 41 #include "platform/scroll/ScrollbarThemeClient.h" |
| 42 #include "platform/scroll/ScrollbarThemeMacNonOverlayAPI.h" | 42 #include "platform/scroll/ScrollbarThemeMacNonOverlayAPI.h" |
| 43 #include "platform/scroll/ScrollbarThemeMacOverlayAPI.h" | 43 #include "platform/scroll/ScrollbarThemeMacOverlayAPI.h" |
| 44 #include "public/platform/mac/WebThemeEngine.h" | 44 #include "public/platform/WebThemeEngine.h" |
| 45 #include "public/platform/Platform.h" | 45 #include "public/platform/Platform.h" |
| 46 #include "public/platform/WebRect.h" | 46 #include "public/platform/WebRect.h" |
| 47 #include "skia/ext/skia_utils_mac.h" | 47 #include "skia/ext/skia_utils_mac.h" |
| 48 #include "wtf/HashSet.h" | 48 #include "wtf/HashSet.h" |
| 49 #include "wtf/StdLibExtras.h" | 49 #include "wtf/StdLibExtras.h" |
| 50 #include "wtf/TemporaryChange.h" | 50 #include "wtf/TemporaryChange.h" |
| 51 | 51 |
| 52 // FIXME: There are repainting problems due to Aqua scroll bar buttons' visual o
verflow. | 52 // FIXME: There are repainting problems due to Aqua scroll bar buttons' visual o
verflow. |
| 53 | 53 |
| 54 using namespace std; | 54 using namespace std; |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 // static | 369 // static |
| 370 bool ScrollbarThemeMacCommon::isOverlayAPIAvailable() | 370 bool ScrollbarThemeMacCommon::isOverlayAPIAvailable() |
| 371 { | 371 { |
| 372 static bool apiAvailable = | 372 static bool apiAvailable = |
| 373 [NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scroll
erImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] | 373 [NSClassFromString(@"NSScrollerImp") respondsToSelector:@selector(scroll
erImpWithStyle:controlSize:horizontal:replacingScrollerImp:)] |
| 374 && [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@
selector(scrollerStyle)]; | 374 && [NSClassFromString(@"NSScrollerImpPair") instancesRespondToSelector:@
selector(scrollerStyle)]; |
| 375 return apiAvailable; | 375 return apiAvailable; |
| 376 } | 376 } |
| 377 | 377 |
| 378 } // namespace WebCore | 378 } // namespace WebCore |
| OLD | NEW |