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

Side by Side Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 1854543002: Oilpan: Remove WillBe types (part 7) (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ImageBitmap_h 5 #ifndef ImageBitmap_h
6 #define ImageBitmap_h 6 #define ImageBitmap_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/html/HTMLImageElement.h" 10 #include "core/html/HTMLImageElement.h"
(...skipping 13 matching lines...) Expand all
24 class HTMLCanvasElement; 24 class HTMLCanvasElement;
25 class HTMLVideoElement; 25 class HTMLVideoElement;
26 class ImageData; 26 class ImageData;
27 class ImageDecoder; 27 class ImageDecoder;
28 28
29 enum AlphaDisposition { 29 enum AlphaDisposition {
30 PremultiplyAlpha, 30 PremultiplyAlpha,
31 DontPremultiplyAlpha, 31 DontPremultiplyAlpha,
32 }; 32 };
33 33
34 class CORE_EXPORT ImageBitmap final : public RefCountedWillBeGarbageCollectedFin alized<ImageBitmap>, public ScriptWrappable, public CanvasImageSource, public Im ageBitmapSource { 34 class CORE_EXPORT ImageBitmap final : public GarbageCollectedFinalized<ImageBitm ap>, public ScriptWrappable, public CanvasImageSource, public ImageBitmapSource {
35 DEFINE_WRAPPERTYPEINFO(); 35 DEFINE_WRAPPERTYPEINFO();
36 public: 36 public:
37 static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLImageElement*, const I ntRect&, Document*, const ImageBitmapOptions& = ImageBitmapOptions()); 37 static RawPtr<ImageBitmap> create(HTMLImageElement*, const IntRect&, Documen t*, const ImageBitmapOptions& = ImageBitmapOptions());
38 static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLVideoElement*, const I ntRect&, Document*, const ImageBitmapOptions& = ImageBitmapOptions()); 38 static RawPtr<ImageBitmap> create(HTMLVideoElement*, const IntRect&, Documen t*, const ImageBitmapOptions& = ImageBitmapOptions());
39 static PassRefPtrWillBeRawPtr<ImageBitmap> create(HTMLCanvasElement*, const IntRect&, const ImageBitmapOptions& = ImageBitmapOptions()); 39 static RawPtr<ImageBitmap> create(HTMLCanvasElement*, const IntRect&, const ImageBitmapOptions& = ImageBitmapOptions());
40 static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageData*, const IntRect& , const ImageBitmapOptions& = ImageBitmapOptions()); 40 static RawPtr<ImageBitmap> create(ImageData*, const IntRect&, const ImageBit mapOptions& = ImageBitmapOptions());
41 static PassRefPtrWillBeRawPtr<ImageBitmap> create(ImageBitmap*, const IntRec t&, const ImageBitmapOptions& = ImageBitmapOptions()); 41 static RawPtr<ImageBitmap> create(ImageBitmap*, const IntRect&, const ImageB itmapOptions& = ImageBitmapOptions());
42 static PassRefPtrWillBeRawPtr<ImageBitmap> create(PassRefPtr<StaticBitmapIma ge>); 42 static RawPtr<ImageBitmap> create(PassRefPtr<StaticBitmapImage>);
43 static PassRefPtrWillBeRawPtr<ImageBitmap> create(PassRefPtr<StaticBitmapIma ge>, const IntRect&, const ImageBitmapOptions& = ImageBitmapOptions()); 43 static RawPtr<ImageBitmap> create(PassRefPtr<StaticBitmapImage>, const IntRe ct&, const ImageBitmapOptions& = ImageBitmapOptions());
44 static PassRefPtr<SkImage> getSkImageFromDecoder(PassOwnPtr<ImageDecoder>); 44 static PassRefPtr<SkImage> getSkImageFromDecoder(PassOwnPtr<ImageDecoder>);
45 45
46 StaticBitmapImage* bitmapImage() const { return (m_image) ? m_image.get() : nullptr; } 46 StaticBitmapImage* bitmapImage() const { return (m_image) ? m_image.get() : nullptr; }
47 PassOwnPtr<uint8_t[]> copyBitmapData(AlphaDisposition alphaOp = DontPremulti plyAlpha); 47 PassOwnPtr<uint8_t[]> copyBitmapData(AlphaDisposition alphaOp = DontPremulti plyAlpha);
48 unsigned long width() const; 48 unsigned long width() const;
49 unsigned long height() const; 49 unsigned long height() const;
50 IntSize size() const; 50 IntSize size() const;
51 51
52 bool isNeutered() const { return m_isNeutered; } 52 bool isNeutered() const { return m_isNeutered; }
53 bool originClean() const { return m_image->originClean(); } 53 bool originClean() const { return m_image->originClean(); }
(...skipping 26 matching lines...) Expand all
80 80
81 void parseOptions(const ImageBitmapOptions&, bool&, bool&); 81 void parseOptions(const ImageBitmapOptions&, bool&, bool&);
82 82
83 RefPtr<StaticBitmapImage> m_image; 83 RefPtr<StaticBitmapImage> m_image;
84 bool m_isNeutered = false; 84 bool m_isNeutered = false;
85 }; 85 };
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // ImageBitmap_h 89 #endif // ImageBitmap_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/History.h ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698