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