| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 virtual void setPressedPart(ScrollbarPart); | 102 virtual void setPressedPart(ScrollbarPart); |
| 103 | 103 |
| 104 void setProportion(int visibleSize, int totalSize); | 104 void setProportion(int visibleSize, int totalSize); |
| 105 void setPressedPos(int p) { m_pressedPos = p; } | 105 void setPressedPos(int p) { m_pressedPos = p; } |
| 106 | 106 |
| 107 void paint(GraphicsContext*, const CullRect&) const final; | 107 void paint(GraphicsContext*, const CullRect&) const final; |
| 108 | 108 |
| 109 bool isOverlayScrollbar() const override; | 109 bool isOverlayScrollbar() const override; |
| 110 bool shouldParticipateInHitTesting(); | 110 bool shouldParticipateInHitTesting(); |
| 111 | 111 |
| 112 void windowActiveChangedForSnowLeopardOnly(); |
| 112 bool isWindowActive() const; | 113 bool isWindowActive() const; |
| 113 | 114 |
| 114 bool gestureEvent(const PlatformGestureEvent&); | 115 bool gestureEvent(const PlatformGestureEvent&); |
| 115 | 116 |
| 116 // These methods are used for platform scrollbars to give :hover feedback.
They will not get called | 117 // These methods are used for platform scrollbars to give :hover feedback.
They will not get called |
| 117 // when the mouse went down in a scrollbar, since it is assumed the scrollba
r will start | 118 // when the mouse went down in a scrollbar, since it is assumed the scrollba
r will start |
| 118 // grabbing all events in that case anyway. | 119 // grabbing all events in that case anyway. |
| 119 void mouseMoved(const PlatformMouseEvent&); | 120 void mouseMoved(const PlatformMouseEvent&); |
| 120 void mouseEntered(); | 121 void mouseEntered(); |
| 121 void mouseExited(); | 122 void mouseExited(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 | 211 |
| 211 bool m_trackNeedsRepaint; | 212 bool m_trackNeedsRepaint; |
| 212 bool m_thumbNeedsRepaint; | 213 bool m_thumbNeedsRepaint; |
| 213 }; | 214 }; |
| 214 | 215 |
| 215 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); | 216 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr
ollbar()); |
| 216 | 217 |
| 217 } // namespace blink | 218 } // namespace blink |
| 218 | 219 |
| 219 #endif // Scrollbar_h | 220 #endif // Scrollbar_h |
| OLD | NEW |