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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 float currentPos() const override { return m_currentPos; } | 98 float currentPos() const override { return m_currentPos; } |
99 int visibleSize() const override { return m_visibleSize; } | 99 int visibleSize() const override { return m_visibleSize; } |
100 int totalSize() const override { return m_totalSize; } | 100 int totalSize() const override { return m_totalSize; } |
101 int maximum() const override { return m_totalSize - m_visibleSize; } | 101 int maximum() const override { return m_totalSize - m_visibleSize; } |
102 ScrollbarControlSize controlSize() const override { return m_controlSize; } | 102 ScrollbarControlSize controlSize() const override { return m_controlSize; } |
103 | 103 |
104 ScrollbarPart pressedPart() const override { return m_pressedPart; } | 104 ScrollbarPart pressedPart() const override { return m_pressedPart; } |
105 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } | 105 ScrollbarPart hoveredPart() const override { return m_hoveredPart; } |
106 | 106 |
107 void styleChanged() override {} | 107 void styleChanged() override {} |
108 void visibilityChanged() override; | 108 void setScrollbarsHidden(bool) override; |
109 bool enabled() const override { return m_enabled; } | 109 bool enabled() const override { return m_enabled; } |
110 void setEnabled(bool) override; | 110 void setEnabled(bool) override; |
111 | 111 |
112 int scrollbarThickness() const; | 112 int scrollbarThickness() const; |
113 | 113 |
114 // Called by the ScrollableArea when the scroll offset changes. | 114 // Called by the ScrollableArea when the scroll offset changes. |
115 // Will trigger paint invalidation if required. | 115 // Will trigger paint invalidation if required. |
116 void offsetDidChange(); | 116 void offsetDidChange(); |
117 | 117 |
118 void disconnectFromScrollableArea(); | 118 void disconnectFromScrollableArea(); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 DEFINE_TYPE_CASTS(Scrollbar, | 257 DEFINE_TYPE_CASTS(Scrollbar, |
258 Widget, | 258 Widget, |
259 widget, | 259 widget, |
260 widget->isScrollbar(), | 260 widget->isScrollbar(), |
261 widget.isScrollbar()); | 261 widget.isScrollbar()); |
262 | 262 |
263 } // namespace blink | 263 } // namespace blink |
264 | 264 |
265 #endif // Scrollbar_h | 265 #endif // Scrollbar_h |
OLD | NEW |