| 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 FramePainter_h | 5 #ifndef FramePainter_h |
| 6 #define FramePainter_h | 6 #define FramePainter_h |
| 7 | 7 |
| 8 #include "core/paint/PaintPhase.h" | 8 #include "core/paint/PaintPhase.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class CullRect; | 13 class CullRect; |
| 14 class FrameView; | 14 class FrameView; |
| 15 class GraphicsContext; | 15 class GraphicsContext; |
| 16 class IntRect; | 16 class IntRect; |
| 17 class Scrollbar; | 17 class Scrollbar; |
| 18 | 18 |
| 19 class FramePainter { | 19 class FramePainter { |
| 20 STACK_ALLOCATED(); | 20 STACK_ALLOCATED(); |
| 21 WTF_MAKE_NONCOPYABLE(FramePainter); | 21 WTF_MAKE_NONCOPYABLE(FramePainter); |
| 22 public: | 22 public: |
| 23 explicit FramePainter(const FrameView& frameView) : m_frameView(&frameView)
{ } | 23 explicit FramePainter(const FrameView& frameView) : m_frameView(&frameView)
{ } |
| 24 | 24 |
| 25 void paint(GraphicsContext*, const GlobalPaintFlags, const CullRect&); | 25 void paint(GraphicsContext&, const GlobalPaintFlags, const CullRect&); |
| 26 void paintScrollbars(GraphicsContext*, const IntRect&); | 26 void paintScrollbars(GraphicsContext&, const IntRect&); |
| 27 void paintContents(GraphicsContext*, const GlobalPaintFlags, const IntRect&)
; | 27 void paintContents(GraphicsContext&, const GlobalPaintFlags, const IntRect&)
; |
| 28 void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); | 28 void paintScrollCorner(GraphicsContext&, const IntRect& cornerRect); |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&); | 31 void paintScrollbar(GraphicsContext&, Scrollbar&, const IntRect&); |
| 32 | 32 |
| 33 const FrameView& frameView(); | 33 const FrameView& frameView(); |
| 34 | 34 |
| 35 RawPtrWillBeMember<const FrameView> m_frameView; | 35 RawPtrWillBeMember<const FrameView> m_frameView; |
| 36 static bool s_inPaintContents; | 36 static bool s_inPaintContents; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace blink | 39 } // namespace blink |
| 40 | 40 |
| 41 #endif // FramePainter_h | 41 #endif // FramePainter_h |
| OLD | NEW |