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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers croll = elasticOverscroll; } | 142 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers croll = elasticOverscroll; } |
143 | 143 |
144 bool trackNeedsRepaint() const override { return m_trackNeedsRepaint; } | 144 bool trackNeedsRepaint() const override { return m_trackNeedsRepaint; } |
145 void setTrackNeedsRepaint(bool trackNeedsRepaint) override { m_trackNeedsRep aint = trackNeedsRepaint; } | 145 void setTrackNeedsRepaint(bool trackNeedsRepaint) override { m_trackNeedsRep aint = trackNeedsRepaint; } |
146 bool thumbNeedsRepaint() const override { return m_thumbNeedsRepaint; } | 146 bool thumbNeedsRepaint() const override { return m_thumbNeedsRepaint; } |
147 void setThumbNeedsRepaint(bool thumbNeedsRepaint) override { m_thumbNeedsRep aint = thumbNeedsRepaint; } | 147 void setThumbNeedsRepaint(bool thumbNeedsRepaint) override { m_thumbNeedsRep aint = thumbNeedsRepaint; } |
148 | 148 |
149 bool overlapsResizer() const { return m_overlapsResizer; } | 149 bool overlapsResizer() const { return m_overlapsResizer; } |
150 void setOverlapsResizer(bool overlapsResizer) { m_overlapsResizer = overlaps Resizer; } | 150 void setOverlapsResizer(bool overlapsResizer) { m_overlapsResizer = overlaps Resizer; } |
151 | 151 |
152 DisplayItemClient displayItemClient() const override { return toDisplayItemC lient(this); } | |
153 String debugName() const override { return m_orientation == HorizontalScroll bar ? "HorizontalScrollbar" : "VerticalScrollbar"; } | 152 String debugName() const override { return m_orientation == HorizontalScroll bar ? "HorizontalScrollbar" : "VerticalScrollbar"; } |
pdr.
2015/12/05 21:39:19
Should this be final too?
Xianzhu
2015/12/07 17:14:01
Done.
| |
154 | 153 |
155 void setNeedsPaintInvalidation(); | 154 void setNeedsPaintInvalidation(); |
156 | 155 |
157 // 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. |
158 EAGERLY_FINALIZE(); | 157 EAGERLY_FINALIZE(); |
159 #if ENABLE(OILPAN) | 158 #if ENABLE(OILPAN) |
160 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); | 159 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); |
161 #endif | 160 #endif |
162 DECLARE_VIRTUAL_TRACE(); | 161 DECLARE_VIRTUAL_TRACE(); |
163 | 162 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 | 210 |
212 bool m_trackNeedsRepaint; | 211 bool m_trackNeedsRepaint; |
213 bool m_thumbNeedsRepaint; | 212 bool m_thumbNeedsRepaint; |
214 }; | 213 }; |
215 | 214 |
216 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); | 215 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); |
217 | 216 |
218 } // namespace blink | 217 } // namespace blink |
219 | 218 |
220 #endif // Scrollbar_h | 219 #endif // Scrollbar_h |
OLD | NEW |