OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef ScrollbarThemeOverlay_h | 26 #ifndef ScrollbarThemeOverlay_h |
27 #define ScrollbarThemeOverlay_h | 27 #define ScrollbarThemeOverlay_h |
28 | 28 |
29 #include "platform/graphics/Color.h" | 29 #include "platform/graphics/Color.h" |
30 #include "platform/scroll/ScrollbarTheme.h" | 30 #include "platform/scroll/ScrollbarTheme.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace blink { |
33 | 33 |
34 // This scrollbar theme is used to get overlay scrollbar for platforms other | 34 // This scrollbar theme is used to get overlay scrollbar for platforms other |
35 // than Mac. Mac's overlay scrollbars are in ScrollbarThemeMac*. | 35 // than Mac. Mac's overlay scrollbars are in ScrollbarThemeMac*. |
36 class PLATFORM_EXPORT ScrollbarThemeOverlay : public ScrollbarTheme { | 36 class PLATFORM_EXPORT ScrollbarThemeOverlay : public ScrollbarTheme { |
37 public: | 37 public: |
38 enum HitTestBehavior { AllowHitTest, DisallowHitTest }; | 38 enum HitTestBehavior { AllowHitTest, DisallowHitTest }; |
39 | 39 |
40 ScrollbarThemeOverlay(int thumbThickness, int scrollbarMargin, HitTestBehavi
or); | 40 ScrollbarThemeOverlay(int thumbThickness, int scrollbarMargin, HitTestBehavi
or); |
41 ScrollbarThemeOverlay(int thumbThickness, int scrollbarMargin, HitTestBehavi
or, Color); | 41 ScrollbarThemeOverlay(int thumbThickness, int scrollbarMargin, HitTestBehavi
or, Color); |
42 virtual ~ScrollbarThemeOverlay() { } | 42 virtual ~ScrollbarThemeOverlay() { } |
(...skipping 16 matching lines...) Expand all Loading... |
59 virtual ScrollbarPart hitTest(ScrollbarThemeClient*, const IntPoint&) OVERRI
DE; | 59 virtual ScrollbarPart hitTest(ScrollbarThemeClient*, const IntPoint&) OVERRI
DE; |
60 | 60 |
61 private: | 61 private: |
62 int m_thumbThickness; | 62 int m_thumbThickness; |
63 int m_scrollbarMargin; | 63 int m_scrollbarMargin; |
64 HitTestBehavior m_allowHitTest; | 64 HitTestBehavior m_allowHitTest; |
65 Color m_color; | 65 Color m_color; |
66 const bool m_useSolidColor; | 66 const bool m_useSolidColor; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace WebCore | 69 } // namespace blink |
70 | 70 |
71 #endif | 71 #endif |
OLD | NEW |