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

Side by Side Diff: third_party/WebKit/Source/modules/imagebitmap/ImageBitmapRenderingContext.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (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
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 ImageBitmapRenderingContext_h 5 #ifndef ImageBitmapRenderingContext_h
6 #define ImageBitmapRenderingContext_h 6 #define ImageBitmapRenderingContext_h
7 7
8 #include "core/html/canvas/CanvasRenderingContext.h" 8 #include "core/html/canvas/CanvasRenderingContext.h"
9 #include "core/html/canvas/CanvasRenderingContextFactory.h" 9 #include "core/html/canvas/CanvasRenderingContextFactory.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
11 #include "wtf/RefPtr.h" 11 #include "wtf/RefPtr.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class ImageBitmap; 15 class ImageBitmap;
16 16
17 class MODULES_EXPORT ImageBitmapRenderingContext final : public CanvasRenderingC ontext { 17 class MODULES_EXPORT ImageBitmapRenderingContext final : public CanvasRenderingC ontext {
18 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
19 public: 19 public:
20 class Factory : public CanvasRenderingContextFactory { 20 class Factory : public CanvasRenderingContextFactory {
21 WTF_MAKE_NONCOPYABLE(Factory); 21 WTF_MAKE_NONCOPYABLE(Factory);
22 public: 22 public:
23 Factory() {} 23 Factory() {}
24 ~Factory() override {} 24 ~Factory() override {}
25 25
26 PassOwnPtrWillBeRawPtr<CanvasRenderingContext> create(HTMLCanvasElement* , const CanvasContextCreationAttributes&, Document&) override; 26 RawPtr<CanvasRenderingContext> create(HTMLCanvasElement*, const CanvasCo ntextCreationAttributes&, Document&) override;
27 CanvasRenderingContext::ContextType getContextType() const override { re turn CanvasRenderingContext::ContextImageBitmap; } 27 CanvasRenderingContext::ContextType getContextType() const override { re turn CanvasRenderingContext::ContextImageBitmap; }
28 void onError(HTMLCanvasElement*, const String& error) override { } 28 void onError(HTMLCanvasElement*, const String& error) override { }
29 }; 29 };
30 30
31 // Script API 31 // Script API
32 void transferImageBitmap(ImageBitmap*); 32 void transferImageBitmap(ImageBitmap*);
33 33
34 // CanvasRenderingContext implementation 34 // CanvasRenderingContext implementation
35 ContextType getContextType() const override { return CanvasRenderingContext: :ContextImageBitmap; } 35 ContextType getContextType() const override { return CanvasRenderingContext: :ContextImageBitmap; }
36 bool hasAlpha() const override { return m_hasAlpha; } 36 bool hasAlpha() const override { return m_hasAlpha; }
(...skipping 14 matching lines...) Expand all
51 private: 51 private:
52 ImageBitmapRenderingContext(HTMLCanvasElement*, CanvasContextCreationAttribu tes, Document&); 52 ImageBitmapRenderingContext(HTMLCanvasElement*, CanvasContextCreationAttribu tes, Document&);
53 53
54 bool m_hasAlpha; 54 bool m_hasAlpha;
55 RefPtr<Image> m_image; 55 RefPtr<Image> m_image;
56 }; 56 };
57 57
58 } // blink 58 } // blink
59 59
60 #endif 60 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698