| 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 OffscreenCanvasModules_h | 5 #ifndef OffscreenCanvasModules_h |
| 6 #define OffscreenCanvasModules_h | 6 #define OffscreenCanvasModules_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "core/offscreencanvas/OffscreenCanvas.h" |
| 9 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 10 #include "wtf/Allocator.h" | 11 #include "wtf/Allocator.h" |
| 11 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 class CanvasContextCreationAttributes; | 16 class CanvasContextCreationAttributes; |
| 16 class OffscreenCanvas; | 17 class OffscreenCanvas; |
| 17 class OffscreenCanvasRenderingContext2D; | 18 class OffscreenCanvasRenderingContext2D; |
| 18 | 19 |
| 19 class MODULES_EXPORT OffscreenCanvasModules { | 20 class MODULES_EXPORT OffscreenCanvasModules { |
| 20 STATIC_ONLY(OffscreenCanvasModules) | 21 STATIC_ONLY(OffscreenCanvasModules) |
| 21 public: | 22 public: |
| 22 static OffscreenCanvasRenderingContext2D* getContext(OffscreenCanvas&, const
String&, const CanvasContextCreationAttributes&, ExceptionState&); | 23 static void getContext(ScriptState*, OffscreenCanvas&, const String&, const
CanvasContextCreationAttributes&, ExceptionState&, OffscreenRenderingContext&); |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // namespace blink | 26 } // namespace blink |
| 26 | 27 |
| 27 #endif // OffscreenCanvasModules_h | 28 #endif // OffscreenCanvasModules_h |
| 28 | 29 |
| OLD | NEW |