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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h

Issue 1841633002: Make constructors in Worklets be properly exposed on the global. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/modules.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 PaintRenderingContext2D_h 5 #ifndef PaintRenderingContext2D_h
6 #define PaintRenderingContext2D_h 6 #define PaintRenderingContext2D_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/canvas2d/BaseRenderingContext2D.h" 10 #include "modules/canvas2d/BaseRenderingContext2D.h"
11 #include "platform/graphics/ImageBuffer.h"
11 #include "third_party/skia/include/core/SkCanvas.h" 12 #include "third_party/skia/include/core/SkCanvas.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class CanvasImageSource; 16 class CanvasImageSource;
16 class Color; 17 class Color;
17 class ImageBuffer;
18 18
19 class MODULES_EXPORT PaintRenderingContext2D : public BaseRenderingContext2D, pu blic RefCountedWillBeGarbageCollectedFinalized<PaintRenderingContext2D>, public ScriptWrappable { 19 class MODULES_EXPORT PaintRenderingContext2D : public BaseRenderingContext2D, pu blic RefCountedWillBeGarbageCollectedFinalized<PaintRenderingContext2D>, public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintRenderingContext2D); 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PaintRenderingContext2D);
22 WTF_MAKE_NONCOPYABLE(PaintRenderingContext2D); 22 WTF_MAKE_NONCOPYABLE(PaintRenderingContext2D);
23 USING_FAST_MALLOC_WILL_BE_REMOVED(PaintRenderingContext2D); 23 USING_FAST_MALLOC_WILL_BE_REMOVED(PaintRenderingContext2D);
24 public: 24 public:
25 static PassRefPtrWillBeRawPtr<PaintRenderingContext2D> create(PassOwnPtr<Ima geBuffer> imageBuffer) 25 static PassRefPtrWillBeRawPtr<PaintRenderingContext2D> create(PassOwnPtr<Ima geBuffer> imageBuffer)
26 { 26 {
27 return adoptRefWillBeNoop(new PaintRenderingContext2D(imageBuffer)); 27 return adoptRefWillBeNoop(new PaintRenderingContext2D(imageBuffer));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 private: 68 private:
69 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>); 69 explicit PaintRenderingContext2D(PassOwnPtr<ImageBuffer>);
70 70
71 OwnPtr<ImageBuffer> m_imageBuffer; 71 OwnPtr<ImageBuffer> m_imageBuffer;
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // PaintRenderingContext2D_h 76 #endif // PaintRenderingContext2D_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/modules/modules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698