OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 ImageElementBase_h | 5 #ifndef ImageElementBase_h |
6 #define ImageElementBase_h | 6 #define ImageElementBase_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/html/canvas/CanvasImageSource.h" | 9 #include "core/html/canvas/CanvasImageSource.h" |
10 #include "core/imagebitmap/ImageBitmapSource.h" | 10 #include "core/imagebitmap/ImageBitmapSource.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 IntSize BitmapSourceSize() const override; | 24 IntSize BitmapSourceSize() const override; |
25 ScriptPromise CreateImageBitmap(ScriptState*, | 25 ScriptPromise CreateImageBitmap(ScriptState*, |
26 EventTarget&, | 26 EventTarget&, |
27 Optional<IntRect>, | 27 Optional<IntRect>, |
28 const ImageBitmapOptions&, | 28 const ImageBitmapOptions&, |
29 ExceptionState&) override; | 29 ExceptionState&) override; |
30 | 30 |
31 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, | 31 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, |
32 AccelerationHint, | 32 AccelerationHint, |
33 SnapshotReason, | 33 SnapshotReason, |
34 const FloatSize&) const override; | 34 const FloatSize&) override; |
35 | 35 |
36 bool WouldTaintOrigin( | 36 bool WouldTaintOrigin( |
37 SecurityOrigin* destination_security_origin) const override; | 37 SecurityOrigin* destination_security_origin) const override; |
38 | 38 |
39 FloatSize ElementSize(const FloatSize& default_object_size) const override; | 39 FloatSize ElementSize(const FloatSize& default_object_size) const override; |
40 FloatSize DefaultDestinationSize( | 40 FloatSize DefaultDestinationSize( |
41 const FloatSize& default_object_size) const override; | 41 const FloatSize& default_object_size) const override; |
42 | 42 |
43 bool IsAccelerated() const override; | 43 bool IsAccelerated() const override; |
44 | 44 |
45 int SourceWidth() override; | 45 int SourceWidth() override; |
46 int SourceHeight() override; | 46 int SourceHeight() override; |
47 | 47 |
48 bool IsSVGSource() const override; | 48 bool IsSVGSource() const override; |
49 | 49 |
50 bool IsOpaque() const override; | 50 bool IsOpaque() const override; |
51 | 51 |
52 const KURL& SourceURL() const override; | 52 const KURL& SourceURL() const override; |
53 | 53 |
54 ImageResourceContent* CachedImage() const; | 54 ImageResourceContent* CachedImage() const; |
55 | 55 |
56 private: | 56 private: |
57 const Element& GetElement() const; | 57 const Element& GetElement() const; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
61 | 61 |
62 #endif // ImageElementBase_h | 62 #endif // ImageElementBase_h |
OLD | NEW |