| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Used by some platform scrollbars to know when they've been released from
capture. | 124 // Used by some platform scrollbars to know when they've been released from
capture. |
| 125 void mouseUp(const PlatformMouseEvent&); | 125 void mouseUp(const PlatformMouseEvent&); |
| 126 void mouseDown(const PlatformMouseEvent&); | 126 void mouseDown(const PlatformMouseEvent&); |
| 127 | 127 |
| 128 ScrollbarTheme* theme() const { return m_theme; } | 128 ScrollbarTheme* theme() const { return m_theme; } |
| 129 | 129 |
| 130 IntRect convertToContainingWidget(const IntRect&) const override; | 130 IntRect convertToContainingWidget(const IntRect&) const override; |
| 131 IntRect convertFromContainingWidget(const IntRect&) const override; | 131 IntRect convertFromContainingWidget(const IntRect&) const override; |
| 132 | 132 |
| 133 FloatRect convertToContainingWidget(const FloatRect&) const override; |
| 134 |
| 133 IntPoint convertToContainingWidget(const IntPoint&) const override; | 135 IntPoint convertToContainingWidget(const IntPoint&) const override; |
| 134 IntPoint convertFromContainingWidget(const IntPoint&) const override; | 136 IntPoint convertFromContainingWidget(const IntPoint&) const override; |
| 135 | 137 |
| 136 void moveThumb(int pos, bool draggingDocument = false); | 138 void moveThumb(int pos, bool draggingDocument = false); |
| 137 | 139 |
| 138 bool isAlphaLocked() const override { return m_isAlphaLocked; } | 140 bool isAlphaLocked() const override { return m_isAlphaLocked; } |
| 139 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } | 141 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } |
| 140 | 142 |
| 141 float elasticOverscroll() const override { return m_elasticOverscroll; } | 143 float elasticOverscroll() const override { return m_elasticOverscroll; } |
| 142 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers
croll = elasticOverscroll; } | 144 void setElasticOverscroll(float elasticOverscroll) override { m_elasticOvers
croll = elasticOverscroll; } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 213 |
| 212 bool m_trackNeedsRepaint; | 214 bool m_trackNeedsRepaint; |
| 213 bool m_thumbNeedsRepaint; | 215 bool m_thumbNeedsRepaint; |
| 214 }; | 216 }; |
| 215 | 217 |
| 216 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 218 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 217 | 219 |
| 218 } // namespace blink | 220 } // namespace blink |
| 219 | 221 |
| 220 #endif // Scrollbar_h | 222 #endif // Scrollbar_h |
| OLD | NEW |