| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 Widget* parent() const override { return Widget::parent(); } | 62 Widget* parent() const override { return Widget::parent(); } |
| 63 Widget* root() const override { return Widget::root(); } | 63 Widget* root() const override { return Widget::root(); } |
| 64 | 64 |
| 65 void setFrameRect(const IntRect&) override; | 65 void setFrameRect(const IntRect&) override; |
| 66 IntRect frameRect() const override { return Widget::frameRect(); } | 66 IntRect frameRect() const override { return Widget::frameRect(); } |
| 67 | 67 |
| 68 ScrollbarOverlayStyle scrollbarOverlayStyle() const override; | 68 ScrollbarOverlayStyle scrollbarOverlayStyle() const override; |
| 69 void getTickmarks(Vector<IntRect>&) const override; | 69 void getTickmarks(Vector<IntRect>&) const override; |
| 70 bool isScrollableAreaActive() const override; | 70 bool isScrollableAreaActive() const override; |
| 71 | 71 |
| 72 IntPoint convertFromContainingWindow(const IntPoint& windowPoint) const over
ride { return Widget::convertFromContainingWindow(windowPoint); } | 72 IntPoint convertFromRootFrame(const IntPoint& pointInRootFrame) const overri
de { return Widget::convertFromRootFrame(pointInRootFrame); } |
| 73 | 73 |
| 74 bool isCustomScrollbar() const override { return false; } | 74 bool isCustomScrollbar() const override { return false; } |
| 75 ScrollbarOrientation orientation() const override { return m_orientation; } | 75 ScrollbarOrientation orientation() const override { return m_orientation; } |
| 76 bool isLeftSideVerticalScrollbar() const override; | 76 bool isLeftSideVerticalScrollbar() const override; |
| 77 | 77 |
| 78 int value() const override { return lroundf(m_currentPos); } | 78 int value() const override { return lroundf(m_currentPos); } |
| 79 float currentPos() const override { return m_currentPos; } | 79 float currentPos() const override { return m_currentPos; } |
| 80 int visibleSize() const override { return m_visibleSize; } | 80 int visibleSize() const override { return m_visibleSize; } |
| 81 int totalSize() const override { return m_totalSize; } | 81 int totalSize() const override { return m_totalSize; } |
| 82 int maximum() const override { return m_totalSize - m_visibleSize; } | 82 int maximum() const override { return m_totalSize - m_visibleSize; } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void mouseMoved(const PlatformMouseEvent&); | 120 void mouseMoved(const PlatformMouseEvent&); |
| 121 void mouseEntered(); | 121 void mouseEntered(); |
| 122 void mouseExited(); | 122 void mouseExited(); |
| 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 convertToContainingView(const IntRect&) const override; | 130 IntRect convertToContainingWidget(const IntRect&) const override; |
| 131 IntRect convertFromContainingView(const IntRect&) const override; | 131 IntRect convertFromContainingWidget(const IntRect&) const override; |
| 132 | 132 |
| 133 IntPoint convertToContainingView(const IntPoint&) const override; | 133 IntPoint convertToContainingWidget(const IntPoint&) const override; |
| 134 IntPoint convertFromContainingView(const IntPoint&) const override; | 134 IntPoint convertFromContainingWidget(const IntPoint&) const override; |
| 135 | 135 |
| 136 void moveThumb(int pos, bool draggingDocument = false); | 136 void moveThumb(int pos, bool draggingDocument = false); |
| 137 | 137 |
| 138 bool isAlphaLocked() const override { return m_isAlphaLocked; } | 138 bool isAlphaLocked() const override { return m_isAlphaLocked; } |
| 139 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } | 139 void setIsAlphaLocked(bool flag) override { m_isAlphaLocked = flag; } |
| 140 | 140 |
| 141 float elasticOverscroll() const override { return m_elasticOverscroll; } | 141 float elasticOverscroll() const override { return m_elasticOverscroll; } |
| 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; } |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 bool m_trackNeedsRepaint; | 212 bool m_trackNeedsRepaint; |
| 213 bool m_thumbNeedsRepaint; | 213 bool m_thumbNeedsRepaint; |
| 214 }; | 214 }; |
| 215 | 215 |
| 216 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 216 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 217 | 217 |
| 218 } // namespace blink | 218 } // namespace blink |
| 219 | 219 |
| 220 #endif // Scrollbar_h | 220 #endif // Scrollbar_h |
| OLD | NEW |