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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // grabbing all events in that case anyway. | 126 // grabbing all events in that case anyway. |
127 void mouseMoved(const PlatformMouseEvent&); | 127 void mouseMoved(const PlatformMouseEvent&); |
128 void mouseEntered(); | 128 void mouseEntered(); |
129 void mouseExited(); | 129 void mouseExited(); |
130 | 130 |
131 // Used by some platform scrollbars to know when they've been released from
capture. | 131 // Used by some platform scrollbars to know when they've been released from
capture. |
132 void mouseUp(const PlatformMouseEvent&); | 132 void mouseUp(const PlatformMouseEvent&); |
133 void mouseDown(const PlatformMouseEvent&); | 133 void mouseDown(const PlatformMouseEvent&); |
134 | 134 |
135 ScrollbarTheme& theme() const { return m_theme; } | 135 ScrollbarTheme& theme() const { return m_theme; } |
| 136 void setScreenId(uintptr_t id) { m_screenId = id; } |
| 137 uintptr_t screenId() const { return m_screenId; } |
136 | 138 |
137 IntRect convertToContainingWidget(const IntRect&) const override; | 139 IntRect convertToContainingWidget(const IntRect&) const override; |
138 IntRect convertFromContainingWidget(const IntRect&) const override; | 140 IntRect convertFromContainingWidget(const IntRect&) const override; |
139 | 141 |
140 IntPoint convertToContainingWidget(const IntPoint&) const override; | 142 IntPoint convertToContainingWidget(const IntPoint&) const override; |
141 IntPoint convertFromContainingWidget(const IntPoint&) const override; | 143 IntPoint convertFromContainingWidget(const IntPoint&) const override; |
142 | 144 |
143 void moveThumb(int pos, bool draggingDocument = false); | 145 void moveThumb(int pos, bool draggingDocument = false); |
144 | 146 |
145 float elasticOverscroll() const override { return m_elasticOverscroll; } | 147 float elasticOverscroll() const override { return m_elasticOverscroll; } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void stopTimerIfNeeded(); | 190 void stopTimerIfNeeded(); |
189 void autoscrollPressedPart(double delay); | 191 void autoscrollPressedPart(double delay); |
190 ScrollDirectionPhysical pressedPartScrollDirectionPhysical(); | 192 ScrollDirectionPhysical pressedPartScrollDirectionPhysical(); |
191 ScrollGranularity pressedPartScrollGranularity(); | 193 ScrollGranularity pressedPartScrollGranularity(); |
192 | 194 |
193 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; | 195 RawPtrWillBeMember<ScrollableArea> m_scrollableArea; |
194 ScrollbarOrientation m_orientation; | 196 ScrollbarOrientation m_orientation; |
195 ScrollbarControlSize m_controlSize; | 197 ScrollbarControlSize m_controlSize; |
196 ScrollbarTheme& m_theme; | 198 ScrollbarTheme& m_theme; |
197 RawPtrWillBeMember<HostWindow> m_hostWindow; | 199 RawPtrWillBeMember<HostWindow> m_hostWindow; |
| 200 uintptr_t m_screenId; |
198 | 201 |
199 int m_visibleSize; | 202 int m_visibleSize; |
200 int m_totalSize; | 203 int m_totalSize; |
201 float m_currentPos; | 204 float m_currentPos; |
202 float m_dragOrigin; | 205 float m_dragOrigin; |
203 | 206 |
204 ScrollbarPart m_hoveredPart; | 207 ScrollbarPart m_hoveredPart; |
205 ScrollbarPart m_pressedPart; | 208 ScrollbarPart m_pressedPart; |
206 int m_pressedPos; | 209 int m_pressedPos; |
207 float m_scrollPos; | 210 float m_scrollPos; |
(...skipping 19 matching lines...) Expand all Loading... |
227 | 230 |
228 bool m_trackNeedsRepaint; | 231 bool m_trackNeedsRepaint; |
229 bool m_thumbNeedsRepaint; | 232 bool m_thumbNeedsRepaint; |
230 }; | 233 }; |
231 | 234 |
232 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 235 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
233 | 236 |
234 } // namespace blink | 237 } // namespace blink |
235 | 238 |
236 #endif // Scrollbar_h | 239 #endif // Scrollbar_h |
OLD | NEW |