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 #include "platform/scroll/ScrollbarThemeOverlay.h" | 26 #include "platform/scroll/ScrollbarThemeOverlay.h" |
27 | 27 |
28 #include "platform/PlatformMouseEvent.h" | 28 #include "platform/PlatformMouseEvent.h" |
29 #include "platform/graphics/GraphicsContext.h" | 29 #include "platform/graphics/GraphicsContext.h" |
30 #include "platform/graphics/paint/DrawingRecorder.h" | 30 #include "platform/graphics/paint/DrawingRecorder.h" |
31 #include "platform/scroll/Scrollbar.h" | 31 #include "platform/scroll/Scrollbar.h" |
32 #include "platform/scroll/ScrollbarThemeAura.h" | |
bokan
2016/11/07 16:57:39
This is unneeded?
| |
32 #include "platform/transforms/TransformationMatrix.h" | 33 #include "platform/transforms/TransformationMatrix.h" |
33 #include "public/platform/Platform.h" | 34 #include "public/platform/Platform.h" |
34 #include "public/platform/WebRect.h" | 35 #include "public/platform/WebRect.h" |
35 #include "public/platform/WebThemeEngine.h" | 36 #include "public/platform/WebThemeEngine.h" |
36 #include "wtf/MathExtras.h" | 37 #include "wtf/MathExtras.h" |
37 | 38 |
38 #include <algorithm> | 39 #include <algorithm> |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
41 | 42 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 Platform::current()->themeEngine()->getOverlayScrollbarStyle(&style); | 208 Platform::current()->themeEngine()->getOverlayScrollbarStyle(&style); |
208 } | 209 } |
209 theme = new ScrollbarThemeOverlay( | 210 theme = new ScrollbarThemeOverlay( |
210 style.thumbThickness, style.scrollbarMargin, | 211 style.thumbThickness, style.scrollbarMargin, |
211 ScrollbarThemeOverlay::DisallowHitTest, Color(style.color)); | 212 ScrollbarThemeOverlay::DisallowHitTest, Color(style.color)); |
212 } | 213 } |
213 return *theme; | 214 return *theme; |
214 } | 215 } |
215 | 216 |
216 } // namespace blink | 217 } // namespace blink |
OLD | NEW |