OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006 Apple Computer, 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } | 90 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } |
91 | 91 |
92 void styleChanged() override { } | 92 void styleChanged() override { } |
93 void visibilityChanged() override; | 93 void visibilityChanged() override; |
94 bool enabled() const override { return m_enabled; } | 94 bool enabled() const override { return m_enabled; } |
95 void setEnabled(bool) override; | 95 void setEnabled(bool) override; |
96 | 96 |
97 int scrollbarThickness() const; | 97 int scrollbarThickness() const; |
98 | 98 |
99 // Called by the ScrollableArea when the scroll offset changes. | 99 // Called by the ScrollableArea when the scroll offset changes. |
| 100 // Will trigger paint invalidation if required. |
100 void offsetDidChange(); | 101 void offsetDidChange(); |
101 | 102 |
102 void disconnectFromScrollableArea(); | 103 void disconnectFromScrollableArea(); |
103 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 104 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
104 | 105 |
105 int pressedPos() const { return m_pressedPos; } | 106 int pressedPos() const { return m_pressedPos; } |
106 | 107 |
107 virtual void setHoveredPart(ScrollbarPart); | 108 virtual void setHoveredPart(ScrollbarPart); |
108 virtual void setPressedPart(ScrollbarPart); | 109 virtual void setPressedPart(ScrollbarPart); |
109 | 110 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 | 225 |
225 bool m_trackNeedsRepaint; | 226 bool m_trackNeedsRepaint; |
226 bool m_thumbNeedsRepaint; | 227 bool m_thumbNeedsRepaint; |
227 }; | 228 }; |
228 | 229 |
229 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 230 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
230 | 231 |
231 } // namespace blink | 232 } // namespace blink |
232 | 233 |
233 #endif // Scrollbar_h | 234 #endif // Scrollbar_h |
OLD | NEW |