OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 HTMLCanvasElementModule_h | 5 #ifndef HTMLCanvasElementModule_h |
6 #define HTMLCanvasElementModule_h | 6 #define HTMLCanvasElementModule_h |
7 | 7 |
8 #include "core/html/HTMLCanvasElement.h" | 8 #include "core/html/HTMLCanvasElement.h" |
9 #include "modules/ModulesExport.h" | 9 #include "modules/ModulesExport.h" |
10 #include "wtf/text/WTFString.h" | 10 #include "wtf/text/WTFString.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 static void getContext(HTMLCanvasElement&, | 25 static void getContext(HTMLCanvasElement&, |
26 const String&, | 26 const String&, |
27 const CanvasContextCreationAttributes&, | 27 const CanvasContextCreationAttributes&, |
28 ExceptionState&, | 28 ExceptionState&, |
29 RenderingContext&); | 29 RenderingContext&); |
30 static OffscreenCanvas* transferControlToOffscreen(HTMLCanvasElement&, | 30 static OffscreenCanvas* transferControlToOffscreen(HTMLCanvasElement&, |
31 ExceptionState&); | 31 ExceptionState&); |
32 | 32 |
33 private: | 33 private: |
34 static OffscreenCanvas* transferControlToOffscreenInternal(HTMLCanvasElement&, | 34 static OffscreenCanvas* transferControlToOffscreenInternal(HTMLCanvasElement&, |
| 35 int canvasId, |
35 ExceptionState&); | 36 ExceptionState&); |
36 }; | 37 }; |
37 } | 38 } |
38 | 39 |
39 #endif | 40 #endif |
OLD | NEW |