| 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 | 142 |
| 143 bool isAlphaLocked() const override { return m_isAlphaLocked; } | 143 bool isAlphaLocked() const override { return m_isAlphaLocked; } |
| 144 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } | 144 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } |
| 145 | 145 |
| 146 float elasticOverscroll() const override { return m_elasticOverscroll; } | 146 float elasticOverscroll() const override { return m_elasticOverscroll; } |
| 147 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers
croll = elasticOverscroll; } | 147 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers
croll = elasticOverscroll; } |
| 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); } | 152 DisplayItemClient displayItemClient() const override { return DisplayItemCli
ent(this); } |
| 153 String debugName() const override { return m_orientation == HorizontalScroll
bar ? "HorizontalScrollbar" : "VerticalScrollbar"; } | 153 String debugName() const override { return m_orientation == HorizontalScroll
bar ? "HorizontalScrollbar" : "VerticalScrollbar"; } |
| 154 | 154 |
| 155 // Promptly unregister from the theme manager + run finalizers of derived Sc
rollbars. | 155 // Promptly unregister from the theme manager + run finalizers of derived Sc
rollbars. |
| 156 EAGERLY_FINALIZE(); | 156 EAGERLY_FINALIZE(); |
| 157 #if ENABLE(OILPAN) | 157 #if ENABLE(OILPAN) |
| 158 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); | 158 DECLARE_EAGER_FINALIZATION_OPERATOR_NEW(); |
| 159 #endif | 159 #endif |
| 160 DECLARE_VIRTUAL_TRACE(); | 160 DECLARE_VIRTUAL_TRACE(); |
| 161 | 161 |
| 162 protected: | 162 protected: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 bool isScrollbar() const override { return true; } | 205 bool isScrollbar() const override { return true; } |
| 206 | 206 |
| 207 float scrollableAreaCurrentPos() const; | 207 float scrollableAreaCurrentPos() const; |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 210 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 211 | 211 |
| 212 } // namespace blink | 212 } // namespace blink |
| 213 | 213 |
| 214 #endif // Scrollbar_h | 214 #endif // Scrollbar_h |
| OLD | NEW |