OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 AutoCanvasDrawListener_h | 5 #ifndef AutoCanvasDrawListener_h |
6 #define AutoCanvasDrawListener_h | 6 #define AutoCanvasDrawListener_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/html/canvas/CanvasDrawListener.h" | 9 #include "core/html/canvas/CanvasDrawListener.h" |
9 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
10 #include "public/platform/WebCanvasCaptureHandler.h" | 11 #include "public/platform/WebCanvasCaptureHandler.h" |
11 #include <memory> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class AutoCanvasDrawListener final | 15 class AutoCanvasDrawListener final |
16 : public GarbageCollectedFinalized<AutoCanvasDrawListener>, | 16 : public GarbageCollectedFinalized<AutoCanvasDrawListener>, |
17 public CanvasDrawListener { | 17 public CanvasDrawListener { |
18 USING_GARBAGE_COLLECTED_MIXIN(AutoCanvasDrawListener); | 18 USING_GARBAGE_COLLECTED_MIXIN(AutoCanvasDrawListener); |
19 | 19 |
20 public: | 20 public: |
21 static AutoCanvasDrawListener* create( | 21 static AutoCanvasDrawListener* create( |
22 std::unique_ptr<WebCanvasCaptureHandler>); | 22 std::unique_ptr<WebCanvasCaptureHandler>); |
23 ~AutoCanvasDrawListener() {} | 23 ~AutoCanvasDrawListener() {} |
24 | 24 |
25 DEFINE_INLINE_TRACE() {} | 25 DEFINE_INLINE_TRACE() {} |
26 | 26 |
27 private: | 27 private: |
28 AutoCanvasDrawListener(std::unique_ptr<WebCanvasCaptureHandler>); | 28 AutoCanvasDrawListener(std::unique_ptr<WebCanvasCaptureHandler>); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace blink | 31 } // namespace blink |
32 | 32 |
33 #endif | 33 #endif |
OLD | NEW |