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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 setScrollbarsHidden(bool) 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 // This returns device-scale-factor-aware pixel value. | 111 // This returns device-scale-factor-aware pixel value. |
112 // e.g. 15 in dsf=1.0, 30 in dsf=2.0. | 112 // e.g. 15 in dsf=1.0, 30 in dsf=2.0. |
| 113 // This returns 0 for overlay scrollbars. |
113 // See also ScrolbarTheme::scrollbatThickness(). | 114 // See also ScrolbarTheme::scrollbatThickness(). |
114 int scrollbarThickness() const; | 115 int scrollbarThickness() const; |
115 | 116 |
116 // Called by the ScrollableArea when the scroll offset changes. | 117 // Called by the ScrollableArea when the scroll offset changes. |
117 // Will trigger paint invalidation if required. | 118 // Will trigger paint invalidation if required. |
118 void offsetDidChange(); | 119 void offsetDidChange(); |
119 | 120 |
120 void disconnectFromScrollableArea(); | 121 void disconnectFromScrollableArea(); |
121 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } | 122 ScrollableArea* getScrollableArea() const { return m_scrollableArea; } |
122 | 123 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 | 259 |
259 DEFINE_TYPE_CASTS(Scrollbar, | 260 DEFINE_TYPE_CASTS(Scrollbar, |
260 Widget, | 261 Widget, |
261 widget, | 262 widget, |
262 widget->isScrollbar(), | 263 widget->isScrollbar(), |
263 widget.isScrollbar()); | 264 widget.isScrollbar()); |
264 | 265 |
265 } // namespace blink | 266 } // namespace blink |
266 | 267 |
267 #endif // Scrollbar_h | 268 #endif // Scrollbar_h |
OLD | NEW |