| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 IntPoint convertFromContainingView(const IntPoint&) const override; | 133 IntPoint convertFromContainingView(const IntPoint&) const override; |
| 134 | 134 |
| 135 void moveThumb(int pos, bool draggingDocument = false); | 135 void moveThumb(int pos, bool draggingDocument = false); |
| 136 | 136 |
| 137 bool isAlphaLocked() const override { return m_isAlphaLocked; } | 137 bool isAlphaLocked() const override { return m_isAlphaLocked; } |
| 138 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } | 138 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } |
| 139 | 139 |
| 140 float elasticOverscroll() const override { return m_elasticOverscroll; } | 140 float elasticOverscroll() const override { return m_elasticOverscroll; } |
| 141 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers
croll = elasticOverscroll; } | 141 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers
croll = elasticOverscroll; } |
| 142 | 142 |
| 143 bool trackNeedsRepaint() const override { return m_trackNeedsRepaint; } |
| 144 void setTrackNeedsRepaint(bool trackNeedsRepaint) override { m_trackNeedsRep
aint = trackNeedsRepaint; } |
| 145 bool thumbNeedsRepaint() const override { return m_thumbNeedsRepaint; } |
| 146 void setThumbNeedsRepaint(bool thumbNeedsRepaint) override { m_thumbNeedsRep
aint = thumbNeedsRepaint; } |
| 147 |
| 143 bool overlapsResizer() const { return m_overlapsResizer; } | 148 bool overlapsResizer() const { return m_overlapsResizer; } |
| 144 void setOverlapsResizer(bool overlapsResizer) { m_overlapsResizer = overlaps
Resizer; } | 149 void setOverlapsResizer(bool overlapsResizer) { m_overlapsResizer = overlaps
Resizer; } |
| 145 | 150 |
| 146 DisplayItemClient displayItemClient() const override { return toDisplayItemC
lient(this); } | 151 DisplayItemClient displayItemClient() const override { return toDisplayItemC
lient(this); } |
| 147 String debugName() const override { return m_orientation == HorizontalScroll
bar ? "HorizontalScrollbar" : "VerticalScrollbar"; } | 152 String debugName() const override { return m_orientation == HorizontalScroll
bar ? "HorizontalScrollbar" : "VerticalScrollbar"; } |
| 148 | 153 |
| 149 void setNeedsPaintInvalidation(); | 154 void setNeedsPaintInvalidation(); |
| 150 | 155 |
| 151 // Promptly unregister from the theme manager + run finalizers of derived Sc
rollbars. | 156 // Promptly unregister from the theme manager + run finalizers of derived Sc
rollbars. |
| 152 EAGERLY_FINALIZE(); | 157 EAGERLY_FINALIZE(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 200 |
| 196 float m_elasticOverscroll; | 201 float m_elasticOverscroll; |
| 197 | 202 |
| 198 private: | 203 private: |
| 199 bool isScrollbar() const override { return true; } | 204 bool isScrollbar() const override { return true; } |
| 200 | 205 |
| 201 void invalidate() override { setNeedsPaintInvalidation(); } | 206 void invalidate() override { setNeedsPaintInvalidation(); } |
| 202 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation();
} | 207 void invalidateRect(const IntRect&) override { setNeedsPaintInvalidation();
} |
| 203 | 208 |
| 204 float scrollableAreaCurrentPos() const; | 209 float scrollableAreaCurrentPos() const; |
| 210 |
| 211 bool m_trackNeedsRepaint; |
| 212 bool m_thumbNeedsRepaint; |
| 205 }; | 213 }; |
| 206 | 214 |
| 207 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 215 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 208 | 216 |
| 209 } // namespace blink | 217 } // namespace blink |
| 210 | 218 |
| 211 #endif // Scrollbar_h | 219 #endif // Scrollbar_h |
| OLD | NEW |