| // Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef EmbeddedObjectPainter_h |
| #define EmbeddedObjectPainter_h |
| |
| #include "platform/wtf/Allocator.h" |
| |
| namespace blink { |
| |
| struct PaintInfo; |
| class LayoutEmbeddedObject; |
| class LayoutPoint; |
| |
| class EmbeddedObjectPainter { |
| STACK_ALLOCATED(); |
| |
| public: |
| EmbeddedObjectPainter(const LayoutEmbeddedObject& layout_embedded_object) |
| : layout_embedded_object_(layout_embedded_object) {} |
| |
| void PaintReplaced(const PaintInfo&, const LayoutPoint& paint_offset); |
| |
| private: |
| const LayoutEmbeddedObject& layout_embedded_object_; |
| }; |
| |
| } // namespace blink |
| |
| #endif // EmbeddedObjectPainter_h |