| 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 HTMLCanvasPainter_h | 5 #ifndef VideoPainter_h |
| 6 #define HTMLCanvasPainter_h | 6 #define VideoPainter_h |
| 7 | 7 |
| 8 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 class GraphicsContext; |
| 10 struct PaintInfo; | 11 struct PaintInfo; |
| 11 class LayoutPoint; | 12 class LayoutPoint; |
| 12 class RenderHTMLCanvas; | 13 class LayoutRect; |
| 14 class RenderVideo; |
| 13 | 15 |
| 14 class HTMLCanvasPainter { | 16 class VideoPainter { |
| 15 public: | 17 public: |
| 16 HTMLCanvasPainter(RenderHTMLCanvas& renderHTMLCanvas) : m_renderHTMLCanvas(r
enderHTMLCanvas) { } | 18 VideoPainter(RenderVideo& renderVideo) : m_renderVideo(renderVideo) { } |
| 19 |
| 17 void paintReplaced(PaintInfo&, const LayoutPoint&); | 20 void paintReplaced(PaintInfo&, const LayoutPoint&); |
| 18 | 21 |
| 19 private: | 22 private: |
| 20 RenderHTMLCanvas& m_renderHTMLCanvas; | 23 |
| 24 RenderVideo& m_renderVideo; |
| 21 }; | 25 }; |
| 22 | 26 |
| 23 } // namespace blink | 27 } // namespace blink |
| 24 | 28 |
| 25 #endif // HTMLCanvasPainter_h | 29 #endif // VideoPainter_h |
| OLD | NEW |