| 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 20 matching lines...) Expand all Loading... |
| 31 #include "platform/scroll/ScrollbarThemeClient.h" | 31 #include "platform/scroll/ScrollbarThemeClient.h" |
| 32 #include "platform/transforms/TransformationMatrix.h" | 32 #include "platform/transforms/TransformationMatrix.h" |
| 33 #include "public/platform/Platform.h" | 33 #include "public/platform/Platform.h" |
| 34 #include "public/platform/WebRect.h" | 34 #include "public/platform/WebRect.h" |
| 35 #include "public/platform/WebThemeEngine.h" | 35 #include "public/platform/WebThemeEngine.h" |
| 36 | 36 |
| 37 #include <algorithm> | 37 #include <algorithm> |
| 38 | 38 |
| 39 using namespace std; | 39 using namespace std; |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace blink { |
| 42 | 42 |
| 43 ScrollbarThemeOverlay::ScrollbarThemeOverlay(int thumbThickness, int scrollbarMa
rgin, HitTestBehavior allowHitTest, Color color) | 43 ScrollbarThemeOverlay::ScrollbarThemeOverlay(int thumbThickness, int scrollbarMa
rgin, HitTestBehavior allowHitTest, Color color) |
| 44 : ScrollbarTheme() | 44 : ScrollbarTheme() |
| 45 , m_thumbThickness(thumbThickness) | 45 , m_thumbThickness(thumbThickness) |
| 46 , m_scrollbarMargin(scrollbarMargin) | 46 , m_scrollbarMargin(scrollbarMargin) |
| 47 , m_allowHitTest(allowHitTest) | 47 , m_allowHitTest(allowHitTest) |
| 48 , m_color(color) | 48 , m_color(color) |
| 49 , m_useSolidColor(true) | 49 , m_useSolidColor(true) |
| 50 { | 50 { |
| 51 } | 51 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 } | 156 } |
| 157 | 157 |
| 158 ScrollbarPart ScrollbarThemeOverlay::hitTest(ScrollbarThemeClient* scrollbar, co
nst IntPoint& position) | 158 ScrollbarPart ScrollbarThemeOverlay::hitTest(ScrollbarThemeClient* scrollbar, co
nst IntPoint& position) |
| 159 { | 159 { |
| 160 if (m_allowHitTest == DisallowHitTest) | 160 if (m_allowHitTest == DisallowHitTest) |
| 161 return NoPart; | 161 return NoPart; |
| 162 | 162 |
| 163 return ScrollbarTheme::hitTest(scrollbar, position); | 163 return ScrollbarTheme::hitTest(scrollbar, position); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace WebCore | 166 } // namespace blink |
| OLD | NEW |