Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasModules.h

Issue 1917733004: Reland of: Make OffscreenCanvas Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address all comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
9 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
10 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class CanvasContextCreationAttributes; 15 class CanvasContextCreationAttributes;
15 class OffscreenCanvas; 16 class OffscreenCanvas;
16 class OffscreenCanvasRenderingContext2D; 17 class OffscreenCanvasRenderingContext2D;
17 18
18 class MODULES_EXPORT OffscreenCanvasModules { 19 class MODULES_EXPORT OffscreenCanvasModules {
19 STATIC_ONLY(OffscreenCanvasModules) 20 STATIC_ONLY(OffscreenCanvasModules)
20 public: 21 public:
21 static OffscreenCanvasRenderingContext2D* getContext(OffscreenCanvas&, const String&, const CanvasContextCreationAttributes&); 22 static OffscreenCanvasRenderingContext2D* getContext(OffscreenCanvas&, const String&, const CanvasContextCreationAttributes&, ExceptionState&);
22 }; 23 };
23 24
24 } // namespace blink 25 } // namespace blink
25 26
26 #endif // OffscreenCanvasModules_h 27 #endif // OffscreenCanvasModules_h
27 28
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698