| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PaintInvalidationCapableScrollableArea_h | 5 #ifndef PaintInvalidationCapableScrollableArea_h |
| 6 #define PaintInvalidationCapableScrollableArea_h | 6 #define PaintInvalidationCapableScrollableArea_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/geometry/LayoutRect.h" | 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "platform/scroll/ScrollableArea.h" | 10 #include "platform/scroll/ScrollableArea.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Should be called when the previous visual rects are no longer valid. | 34 // Should be called when the previous visual rects are no longer valid. |
| 35 void clearPreviousVisualRects(); | 35 void clearPreviousVisualRects(); |
| 36 | 36 |
| 37 virtual IntRect scrollCornerAndResizerRect() const { | 37 virtual IntRect scrollCornerAndResizerRect() const { |
| 38 return scrollCornerRect(); | 38 return scrollCornerRect(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 LayoutRect visualRectForScrollbarParts() const override; | 41 LayoutRect visualRectForScrollbarParts() const override; |
| 42 | 42 |
| 43 void didScrollWithScrollbar(ScrollbarPart, ScrollbarOrientation) override; |
| 44 |
| 43 private: | 45 private: |
| 44 virtual LayoutScrollbarPart* scrollCorner() const = 0; | 46 virtual LayoutScrollbarPart* scrollCorner() const = 0; |
| 45 virtual LayoutScrollbarPart* resizer() const = 0; | 47 virtual LayoutScrollbarPart* resizer() const = 0; |
| 46 | 48 |
| 47 void scrollControlWasSetNeedsPaintInvalidation() override; | 49 void scrollControlWasSetNeedsPaintInvalidation() override; |
| 48 | 50 |
| 49 bool m_horizontalScrollbarPreviouslyWasOverlay; | 51 bool m_horizontalScrollbarPreviouslyWasOverlay; |
| 50 bool m_verticalScrollbarPreviouslyWasOverlay; | 52 bool m_verticalScrollbarPreviouslyWasOverlay; |
| 51 LayoutRect m_horizontalScrollbarPreviousVisualRect; | 53 LayoutRect m_horizontalScrollbarPreviousVisualRect; |
| 52 LayoutRect m_verticalScrollbarPreviousVisualRect; | 54 LayoutRect m_verticalScrollbarPreviousVisualRect; |
| 53 LayoutRect m_scrollCornerAndResizerPreviousVisualRect; | 55 LayoutRect m_scrollCornerAndResizerPreviousVisualRect; |
| 54 }; | 56 }; |
| 55 | 57 |
| 56 } // namespace blink | 58 } // namespace blink |
| 57 | 59 |
| 58 #endif // PaintInvalidationCapableScrollableArea_h | 60 #endif // PaintInvalidationCapableScrollableArea_h |
| OLD | NEW |