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