| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ScrollableAreaPainter_h | 5 #ifndef ScrollableAreaPainter_h |
| 6 #define ScrollableAreaPainter_h | 6 #define ScrollableAreaPainter_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 class GraphicsContext; | 10 class GraphicsContext; |
| 11 class IntPoint; | 11 class IntPoint; |
| 12 class IntRect; | 12 class IntRect; |
| 13 class RenderLayerScrollableArea; | 13 class LayerScrollableArea; |
| 14 | 14 |
| 15 class ScrollableAreaPainter { | 15 class ScrollableAreaPainter { |
| 16 public: | 16 public: |
| 17 ScrollableAreaPainter(RenderLayerScrollableArea& renderLayerScrollableArea)
: m_renderLayerScrollableArea(renderLayerScrollableArea) { } | 17 ScrollableAreaPainter(LayerScrollableArea& renderLayerScrollableArea) : m_re
nderLayerScrollableArea(renderLayerScrollableArea) { } |
| 18 | 18 |
| 19 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe
ct& damageRect); | 19 void paintResizer(GraphicsContext*, const IntPoint& paintOffset, const IntRe
ct& damageRect); |
| 20 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co
nst IntRect& damageRect, bool paintingOverlayControls); | 20 void paintOverflowControls(GraphicsContext*, const IntPoint& paintOffset, co
nst IntRect& damageRect, bool paintingOverlayControls); |
| 21 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam
ageRect); | 21 void paintScrollCorner(GraphicsContext*, const IntPoint&, const IntRect& dam
ageRect); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect); | 24 void drawPlatformResizerImage(GraphicsContext*, IntRect resizerCornerRect); |
| 25 bool overflowControlsIntersectRect(const IntRect& localRect) const; | 25 bool overflowControlsIntersectRect(const IntRect& localRect) const; |
| 26 | 26 |
| 27 RenderLayerScrollableArea& m_renderLayerScrollableArea; | 27 LayerScrollableArea& m_renderLayerScrollableArea; |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 } // namespace blink | 30 } // namespace blink |
| 31 | 31 |
| 32 #endif // ScrollableAreaPainter_h | 32 #endif // ScrollableAreaPainter_h |
| OLD | NEW |