| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual void setPressedPart(ScrollbarPart); | 109 virtual void setPressedPart(ScrollbarPart); |
| 110 | 110 |
| 111 void setProportion(int visibleSize, int totalSize); | 111 void setProportion(int visibleSize, int totalSize); |
| 112 void setPressedPos(int p) { m_pressedPos = p; } | 112 void setPressedPos(int p) { m_pressedPos = p; } |
| 113 | 113 |
| 114 void paint(GraphicsContext&, const CullRect&) const final; | 114 void paint(GraphicsContext&, const CullRect&) const final; |
| 115 | 115 |
| 116 bool isOverlayScrollbar() const override; | 116 bool isOverlayScrollbar() const override; |
| 117 bool shouldParticipateInHitTesting(); | 117 bool shouldParticipateInHitTesting(); |
| 118 | 118 |
| 119 void windowActiveChangedForSnowLeopardOnly(); | |
| 120 bool isWindowActive() const; | 119 bool isWindowActive() const; |
| 121 | 120 |
| 122 // Return if the gesture event was handled. |shouldUpdateCapture| | 121 // Return if the gesture event was handled. |shouldUpdateCapture| |
| 123 // will be set to true if the handler should update the capture | 122 // will be set to true if the handler should update the capture |
| 124 // state for this scrollbar. | 123 // state for this scrollbar. |
| 125 bool gestureEvent(const PlatformGestureEvent&, bool* shouldUpdateCapture); | 124 bool gestureEvent(const PlatformGestureEvent&, bool* shouldUpdateCapture); |
| 126 | 125 |
| 127 // These methods are used for platform scrollbars to give :hover feedback.
They will not get called | 126 // These methods are used for platform scrollbars to give :hover feedback.
They will not get called |
| 128 // when the mouse went down in a scrollbar, since it is assumed the scrollba
r will start | 127 // when the mouse went down in a scrollbar, since it is assumed the scrollba
r will start |
| 129 // grabbing all events in that case anyway. | 128 // grabbing all events in that case anyway. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 228 |
| 230 bool m_trackNeedsRepaint; | 229 bool m_trackNeedsRepaint; |
| 231 bool m_thumbNeedsRepaint; | 230 bool m_thumbNeedsRepaint; |
| 232 }; | 231 }; |
| 233 | 232 |
| 234 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 233 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 235 | 234 |
| 236 } // namespace blink | 235 } // namespace blink |
| 237 | 236 |
| 238 #endif // Scrollbar_h | 237 #endif // Scrollbar_h |
| OLD | NEW |