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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 ScrollbarPart, | 74 ScrollbarPart, |
75 bool painting = false) override; | 75 bool painting = false) override; |
76 IntRect trackRect(const ScrollbarThemeClient&, | 76 IntRect trackRect(const ScrollbarThemeClient&, |
77 bool painting = false) override; | 77 bool painting = false) override; |
78 int thumbThickness(const ScrollbarThemeClient&) override; | 78 int thumbThickness(const ScrollbarThemeClient&) override; |
79 int thumbThickness() { return m_thumbThickness; } | 79 int thumbThickness() { return m_thumbThickness; } |
80 | 80 |
81 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; | 81 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; |
82 ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&) override; | 82 ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&) override; |
83 | 83 |
| 84 bool usesNinePatchThumbResource() const override; |
| 85 IntSize ninePatchThumbCanvasSize(const ScrollbarThemeClient&) const override; |
| 86 IntRect ninePatchThumbAperture(const ScrollbarThemeClient&) const override; |
| 87 |
84 static ScrollbarThemeOverlay& mobileTheme(); | 88 static ScrollbarThemeOverlay& mobileTheme(); |
85 | 89 |
86 private: | 90 private: |
87 int m_thumbThickness; | 91 int m_thumbThickness; |
88 int m_scrollbarMargin; | 92 int m_scrollbarMargin; |
89 HitTestBehavior m_allowHitTest; | 93 HitTestBehavior m_allowHitTest; |
90 Color m_color; | 94 Color m_color; |
91 const bool m_useSolidColor; | 95 const bool m_useSolidColor; |
92 }; | 96 }; |
93 | 97 |
94 } // namespace blink | 98 } // namespace blink |
95 | 99 |
96 #endif | 100 #endif |
OLD | NEW |