| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009 Apple 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 IntRect buttonRect(ScrollbarPart); | 54 IntRect buttonRect(ScrollbarPart); |
| 55 IntRect trackRect(int startLength, int endLength); | 55 IntRect trackRect(int startLength, int endLength); |
| 56 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&); | 56 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&); |
| 57 | 57 |
| 58 int minimumThumbLength(); | 58 int minimumThumbLength(); |
| 59 | 59 |
| 60 virtual bool isOverlayScrollbar() const { return false; } | 60 virtual bool isOverlayScrollbar() const { return false; } |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 virtual void setParent(ScrollView*); | 63 virtual void setParent(Widget*) OVERRIDE; |
| 64 virtual void setEnabled(bool); | 64 virtual void setEnabled(bool); |
| 65 | 65 |
| 66 virtual void paint(GraphicsContext*, const IntRect& damageRect); | 66 virtual void paint(GraphicsContext*, const IntRect& damageRect); |
| 67 | 67 |
| 68 virtual void setHoveredPart(ScrollbarPart); | 68 virtual void setHoveredPart(ScrollbarPart); |
| 69 virtual void setPressedPart(ScrollbarPart); | 69 virtual void setPressedPart(ScrollbarPart); |
| 70 | 70 |
| 71 virtual void styleChanged(); | 71 virtual void styleChanged(); |
| 72 | 72 |
| 73 virtual bool isCustomScrollbar() const { return true; } | 73 virtual bool isCustomScrollbar() const { return true; } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 92 ASSERT_WITH_SECURITY_IMPLICATION(!scrollbar || scrollbar->isCustomScrollbar(
)); | 92 ASSERT_WITH_SECURITY_IMPLICATION(!scrollbar || scrollbar->isCustomScrollbar(
)); |
| 93 return static_cast<RenderScrollbar*>(scrollbar); | 93 return static_cast<RenderScrollbar*>(scrollbar); |
| 94 } | 94 } |
| 95 | 95 |
| 96 // This will catch anyone doing an unnecessary cast. | 96 // This will catch anyone doing an unnecessary cast. |
| 97 void toRenderScrollbar(const RenderScrollbar*); | 97 void toRenderScrollbar(const RenderScrollbar*); |
| 98 | 98 |
| 99 } // namespace WebCore | 99 } // namespace WebCore |
| 100 | 100 |
| 101 #endif // RenderScrollbar_h | 101 #endif // RenderScrollbar_h |
| OLD | NEW |