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/graphics/GraphicsContext.h" | 28 #include "platform/graphics/GraphicsContext.h" |
29 #include "platform/graphics/paint/DrawingRecorder.h" | 29 #include "platform/graphics/paint/DrawingRecorder.h" |
30 #include "platform/scroll/Scrollbar.h" | 30 #include "platform/scroll/Scrollbar.h" |
31 #include "platform/transforms/TransformationMatrix.h" | 31 #include "platform/transforms/TransformationMatrix.h" |
| 32 #include "platform/wtf/MathExtras.h" |
32 #include "public/platform/Platform.h" | 33 #include "public/platform/Platform.h" |
33 #include "public/platform/WebRect.h" | 34 #include "public/platform/WebRect.h" |
34 #include "public/platform/WebThemeEngine.h" | 35 #include "public/platform/WebThemeEngine.h" |
35 #include "wtf/MathExtras.h" | |
36 | 36 |
37 #include <algorithm> | 37 #include <algorithm> |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 ScrollbarThemeOverlay::ScrollbarThemeOverlay(int thumbThickness, | 41 ScrollbarThemeOverlay::ScrollbarThemeOverlay(int thumbThickness, |
42 int scrollbarMargin, | 42 int scrollbarMargin, |
43 HitTestBehavior allowHitTest, | 43 HitTestBehavior allowHitTest, |
44 Color color) | 44 Color color) |
45 : ScrollbarTheme(), | 45 : ScrollbarTheme(), |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 .height; | 289 .height; |
290 } | 290 } |
291 | 291 |
292 return Platform::current() | 292 return Platform::current() |
293 ->themeEngine() | 293 ->themeEngine() |
294 ->getSize(WebThemeEngine::PartScrollbarHorizontalThumb) | 294 ->getSize(WebThemeEngine::PartScrollbarHorizontalThumb) |
295 .width; | 295 .width; |
296 } | 296 } |
297 | 297 |
298 } // namespace blink | 298 } // namespace blink |
OLD | NEW |