| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const IntRect&) override; | 59 const IntRect&) override; |
| 60 | 60 |
| 61 bool shouldRepaintAllPartsOnInvalidation() const override { return false; } | 61 bool shouldRepaintAllPartsOnInvalidation() const override { return false; } |
| 62 ScrollbarPart invalidateOnThumbPositionChange( | 62 ScrollbarPart invalidateOnThumbPositionChange( |
| 63 const ScrollbarThemeClient&, | 63 const ScrollbarThemeClient&, |
| 64 float oldPosition, | 64 float oldPosition, |
| 65 float newPosition) const override; | 65 float newPosition) const override; |
| 66 void updateEnabledState(const ScrollbarThemeClient&) override; | 66 void updateEnabledState(const ScrollbarThemeClient&) override; |
| 67 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override; | 67 int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) override; |
| 68 bool usesOverlayScrollbars() const override; | 68 bool usesOverlayScrollbars() const override; |
| 69 void updateScrollbarOverlayStyle(const ScrollbarThemeClient&) override; | 69 void updateScrollbarOverlayColorTheme(const ScrollbarThemeClient&) override; |
| 70 WebScrollbarButtonsPlacement buttonsPlacement() const override; | 70 WebScrollbarButtonsPlacement buttonsPlacement() const override; |
| 71 | 71 |
| 72 void setNewPainterForScrollbar(ScrollbarThemeClient&, ScrollbarPainter); | 72 void setNewPainterForScrollbar(ScrollbarThemeClient&, ScrollbarPainter); |
| 73 ScrollbarPainter painterForScrollbar(const ScrollbarThemeClient&) const; | 73 ScrollbarPainter painterForScrollbar(const ScrollbarThemeClient&) const; |
| 74 | 74 |
| 75 void paintTrackBackground(GraphicsContext&, | 75 void paintTrackBackground(GraphicsContext&, |
| 76 const Scrollbar&, | 76 const Scrollbar&, |
| 77 const IntRect&) override; | 77 const IntRect&) override; |
| 78 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; | 78 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; |
| 79 | 79 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 107 bool hasButtons(const ScrollbarThemeClient&) override { return false; } | 107 bool hasButtons(const ScrollbarThemeClient&) override { return false; } |
| 108 bool hasThumb(const ScrollbarThemeClient&) override; | 108 bool hasThumb(const ScrollbarThemeClient&) override; |
| 109 | 109 |
| 110 int minimumThumbLength(const ScrollbarThemeClient&) override; | 110 int minimumThumbLength(const ScrollbarThemeClient&) override; |
| 111 | 111 |
| 112 RefPtr<Pattern> m_overhangPattern; | 112 RefPtr<Pattern> m_overhangPattern; |
| 113 }; | 113 }; |
| 114 } | 114 } |
| 115 | 115 |
| 116 #endif // ScrollbarThemeMac_h | 116 #endif // ScrollbarThemeMac_h |
| OLD | NEW |