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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 ScrollbarThemeOverlay(int thumbThickness, | 40 ScrollbarThemeOverlay(int thumbThickness, |
41 int scrollbarMargin, | 41 int scrollbarMargin, |
42 HitTestBehavior); | 42 HitTestBehavior); |
43 ScrollbarThemeOverlay(int thumbThickness, | 43 ScrollbarThemeOverlay(int thumbThickness, |
44 int scrollbarMargin, | 44 int scrollbarMargin, |
45 HitTestBehavior, | 45 HitTestBehavior, |
46 Color); | 46 Color); |
47 ~ScrollbarThemeOverlay() override {} | 47 ~ScrollbarThemeOverlay() override {} |
48 | 48 |
| 49 bool shouldRepaintAllPartsOnInvalidation() const override; |
| 50 |
| 51 ScrollbarPart invalidateOnThumbPositionChange( |
| 52 const ScrollbarThemeClient&, |
| 53 float oldPosition, |
| 54 float newPosition) const override; |
| 55 |
| 56 ScrollbarPart invalidateOnEnabledChange() const override; |
| 57 |
49 int scrollbarThickness(ScrollbarControlSize) override; | 58 int scrollbarThickness(ScrollbarControlSize) override; |
50 int scrollbarMargin() const override; | 59 int scrollbarMargin() const override; |
51 bool usesOverlayScrollbars() const override; | 60 bool usesOverlayScrollbars() const override; |
52 double overlayScrollbarFadeOutDelaySeconds() const override; | 61 double overlayScrollbarFadeOutDelaySeconds() const override; |
53 double overlayScrollbarFadeOutDurationSeconds() const override; | 62 double overlayScrollbarFadeOutDurationSeconds() const override; |
54 | 63 |
55 int thumbPosition(const ScrollbarThemeClient&, float scrollPosition) override; | 64 int thumbPosition(const ScrollbarThemeClient&, float scrollPosition) override; |
56 int thumbLength(const ScrollbarThemeClient&) override; | 65 int thumbLength(const ScrollbarThemeClient&) override; |
57 | 66 |
58 bool hasButtons(const ScrollbarThemeClient&) override { return false; } | 67 bool hasButtons(const ScrollbarThemeClient&) override { return false; } |
(...skipping 19 matching lines...) Expand all Loading... |
78 int m_thumbThickness; | 87 int m_thumbThickness; |
79 int m_scrollbarMargin; | 88 int m_scrollbarMargin; |
80 HitTestBehavior m_allowHitTest; | 89 HitTestBehavior m_allowHitTest; |
81 Color m_color; | 90 Color m_color; |
82 const bool m_useSolidColor; | 91 const bool m_useSolidColor; |
83 }; | 92 }; |
84 | 93 |
85 } // namespace blink | 94 } // namespace blink |
86 | 95 |
87 #endif | 96 #endif |
OLD | NEW |