Chromium Code Reviews| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 bool hasThumb(const ScrollbarThemeClient&) override; | 59 bool hasThumb(const ScrollbarThemeClient&) override; |
| 60 | 60 |
| 61 IntRect backButtonRect(const ScrollbarThemeClient&, | 61 IntRect backButtonRect(const ScrollbarThemeClient&, |
| 62 ScrollbarPart, | 62 ScrollbarPart, |
| 63 bool painting = false) override; | 63 bool painting = false) override; |
| 64 IntRect forwardButtonRect(const ScrollbarThemeClient&, | 64 IntRect forwardButtonRect(const ScrollbarThemeClient&, |
| 65 ScrollbarPart, | 65 ScrollbarPart, |
| 66 bool painting = false) override; | 66 bool painting = false) override; |
| 67 IntRect trackRect(const ScrollbarThemeClient&, | 67 IntRect trackRect(const ScrollbarThemeClient&, |
| 68 bool painting = false) override; | 68 bool painting = false) override; |
| 69 void paintTickmarks(GraphicsContext&, | |
|
bokan
2016/11/04 19:46:25
Android uses this ScrollbarTheme, how do they draw
| |
| 70 const Scrollbar&, | |
| 71 const IntRect&) override; | |
| 69 int thumbThickness(const ScrollbarThemeClient&) override; | 72 int thumbThickness(const ScrollbarThemeClient&) override; |
| 70 int thumbThickness() { return m_thumbThickness; } | 73 int thumbThickness() { return m_thumbThickness; } |
| 71 | 74 |
| 72 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; | 75 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; |
| 73 ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&) override; | 76 ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&) override; |
| 74 | 77 |
| 75 static ScrollbarThemeOverlay& mobileTheme(); | 78 static ScrollbarThemeOverlay& mobileTheme(); |
| 76 | 79 |
| 77 private: | 80 private: |
| 78 int m_thumbThickness; | 81 int m_thumbThickness; |
| 79 int m_scrollbarMargin; | 82 int m_scrollbarMargin; |
| 80 HitTestBehavior m_allowHitTest; | 83 HitTestBehavior m_allowHitTest; |
| 81 Color m_color; | 84 Color m_color; |
| 82 const bool m_useSolidColor; | 85 const bool m_useSolidColor; |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace blink | 88 } // namespace blink |
| 86 | 89 |
| 87 #endif | 90 #endif |
| OLD | NEW |