| 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" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CanvasContextCreationAttributes; | 14 class CanvasContextCreationAttributes; |
| 15 class HTMLCanvasElement; | 15 class HTMLCanvasElement; |
| 16 class ScriptState; | |
| 17 class OffscreenCanvas; | 16 class OffscreenCanvas; |
| 18 | 17 |
| 19 class MODULES_EXPORT HTMLCanvasElementModule { | 18 class MODULES_EXPORT HTMLCanvasElementModule { |
| 20 STATIC_ONLY(HTMLCanvasElementModule); | 19 STATIC_ONLY(HTMLCanvasElementModule); |
| 21 | 20 |
| 22 friend class HTMLCanvasElementModuleTest; | 21 friend class HTMLCanvasElementModuleTest; |
| 23 | 22 |
| 24 public: | 23 public: |
| 25 static void getContext(HTMLCanvasElement&, | 24 static void getContext(HTMLCanvasElement&, |
| 26 const String&, | 25 const String&, |
| 27 const CanvasContextCreationAttributes&, | 26 const CanvasContextCreationAttributes&, |
| 28 ExceptionState&, | 27 ExceptionState&, |
| 29 RenderingContext&); | 28 RenderingContext&); |
| 30 static OffscreenCanvas* transferControlToOffscreen(HTMLCanvasElement&, | 29 static OffscreenCanvas* transferControlToOffscreen(HTMLCanvasElement&, |
| 31 ExceptionState&); | 30 ExceptionState&); |
| 32 | 31 |
| 33 private: | 32 private: |
| 34 static OffscreenCanvas* transferControlToOffscreenInternal(HTMLCanvasElement&, | 33 static OffscreenCanvas* transferControlToOffscreenInternal(HTMLCanvasElement&, |
| 35 ExceptionState&); | 34 ExceptionState&); |
| 36 }; | 35 }; |
| 37 } | 36 } |
| 38 | 37 |
| 39 #endif | 38 #endif |
| OLD | NEW |