| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; | 82 void paintThumb(GraphicsContext&, const Scrollbar&, const IntRect&) override; |
| 83 | 83 |
| 84 float thumbOpacity(const ScrollbarThemeClient&) const override; | 84 float thumbOpacity(const ScrollbarThemeClient&) const override; |
| 85 | 85 |
| 86 static NSScrollerStyle recommendedScrollerStyle(); | 86 static NSScrollerStyle recommendedScrollerStyle(); |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 int maxOverlapBetweenPages() override { return 40; } | 89 int maxOverlapBetweenPages() override { return 40; } |
| 90 | 90 |
| 91 bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, | 91 bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, |
| 92 const PlatformMouseEvent&) override; | 92 const WebMouseEvent&) override; |
| 93 int scrollbarPartToHIPressedState(ScrollbarPart); | 93 int scrollbarPartToHIPressedState(ScrollbarPart); |
| 94 | 94 |
| 95 virtual void updateButtonPlacement(WebScrollbarButtonsPlacement) {} | 95 virtual void updateButtonPlacement(WebScrollbarButtonsPlacement) {} |
| 96 | 96 |
| 97 IntRect trackRect(const ScrollbarThemeClient&, | 97 IntRect trackRect(const ScrollbarThemeClient&, |
| 98 bool painting = false) override; | 98 bool painting = false) override; |
| 99 IntRect backButtonRect(const ScrollbarThemeClient&, | 99 IntRect backButtonRect(const ScrollbarThemeClient&, |
| 100 ScrollbarPart, | 100 ScrollbarPart, |
| 101 bool painting = false) override; | 101 bool painting = false) override; |
| 102 IntRect forwardButtonRect(const ScrollbarThemeClient&, | 102 IntRect forwardButtonRect(const ScrollbarThemeClient&, |
| 103 ScrollbarPart, | 103 ScrollbarPart, |
| 104 bool painting = false) override; | 104 bool painting = false) override; |
| 105 | 105 |
| 106 bool hasButtons(const ScrollbarThemeClient&) override { return false; } | 106 bool hasButtons(const ScrollbarThemeClient&) override { return false; } |
| 107 bool hasThumb(const ScrollbarThemeClient&) override; | 107 bool hasThumb(const ScrollbarThemeClient&) override; |
| 108 | 108 |
| 109 int minimumThumbLength(const ScrollbarThemeClient&) override; | 109 int minimumThumbLength(const ScrollbarThemeClient&) override; |
| 110 | 110 |
| 111 int tickmarkBorderWidth() override { return 1; } | 111 int tickmarkBorderWidth() override { return 1; } |
| 112 | 112 |
| 113 RefPtr<Pattern> m_overhangPattern; | 113 RefPtr<Pattern> m_overhangPattern; |
| 114 }; | 114 }; |
| 115 } | 115 } |
| 116 | 116 |
| 117 #endif // ScrollbarThemeMac_h | 117 #endif // ScrollbarThemeMac_h |
| OLD | NEW |