Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * | |
| 3 * Copyright (C) 2017 Google Inc. All rights reserved. | |
|
fs
2017/03/06 22:46:15
Use short copyright. (https://chromium.googlesourc
fserb
2017/03/07 20:44:02
done.
| |
| 4 * This library is free software; you can redistribute it and/or | |
| 5 * modify it under the terms of the GNU Library General Public | |
| 6 * License as published by the Free Software Foundation; either | |
| 7 * version 2 of the License, or (at your option) any later version. | |
| 8 * | |
| 9 * This library is distributed in the hope that it will be useful, | |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 12 * Library General Public License for more details. | |
| 13 * | |
| 14 * You should have received a copy of the GNU Library General Public License | |
| 15 * along with this library; see the file COPYING.LIB. If not, write to | |
| 16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
| 17 * Boston, MA 02110-1301, USA. | |
| 18 * | |
| 19 */ | |
| 20 | |
| 21 #ifndef CanvasHTMLSVGImage_h | |
| 22 #define CanvasHTMLSVGImage_h | |
| 23 | |
| 24 #include "bindings/core/v8/ScriptWrappable.h" | |
|
fs
2017/03/06 22:46:15
What's ScriptWrappable here
fserb
2017/03/07 20:44:02
sry, my setup used to lint about those and it does
| |
| 25 #include "core/CoreExport.h" | |
| 26 #include "core/html/canvas/CanvasImageSource.h" | |
| 27 #include "core/loader/ImageLoader.h" | |
| 28 #include "platform/heap/Visitor.h" | |
|
fs
2017/03/06 22:46:15
Not used? (In general it seems very little besides
fserb
2017/03/07 20:44:02
done.
| |
| 29 | |
| 30 namespace blink { | |
| 31 | |
| 32 class CORE_EXPORT CanvasHTMLSVGImage : public CanvasImageSource { | |
|
fs
2017/03/06 22:46:15
The ...HTMLSVGImage suffix feels a bit weird. Mayb
fserb
2017/03/07 20:44:02
done.
| |
| 33 public: | |
| 34 virtual ImageResourceContent* cachedImage() const = 0; | |
|
fs
2017/03/06 22:46:15
It's a bit unfortunate that this ended up as virtu
fserb
2017/03/07 20:44:02
The ImageLoader is a great idea. I moved that to b
fs
2017/03/07 22:01:24
Yeah, let's hope so. (Feel free to verify that it
| |
| 35 virtual bool imageLoaded() const = 0; | |
| 36 virtual const Element* element() const = 0; | |
| 37 | |
| 38 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, | |
| 39 AccelerationHint, | |
| 40 SnapshotReason, | |
| 41 const FloatSize&) const override; | |
| 42 | |
| 43 bool wouldTaintOrigin( | |
| 44 SecurityOrigin* destinationSecurityOrigin) const override; | |
| 45 | |
| 46 FloatSize elementSize(const FloatSize& defaultObjectSize) const override; | |
| 47 FloatSize defaultDestinationSize( | |
| 48 const FloatSize& defaultObjectSize) const override; | |
| 49 | |
| 50 bool isAccelerated() const override; | |
| 51 | |
| 52 int sourceWidth() override; | |
| 53 int sourceHeight() override; | |
| 54 | |
| 55 bool isSVGSource() const override; | |
| 56 | |
| 57 bool isOpaque() const override; | |
| 58 | |
| 59 const KURL& sourceURL() const override; | |
| 60 | |
| 61 private: | |
|
fs
2017/03/06 22:46:15
Drop?
fserb
2017/03/07 20:44:02
used now.
| |
| 62 }; | |
| 63 | |
| 64 } // namespace blink | |
| 65 | |
| 66 #endif // CanvasHTMLSVGImage_h | |
| OLD | NEW |