| OLD | NEW |
| 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 CSSPaintImageGenerator_h | 5 #ifndef CSSPaintImageGenerator_h |
| 6 #define CSSPaintImageGenerator_h | 6 #define CSSPaintImageGenerator_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "platform/geometry/IntSize.h" | 10 #include "platform/geometry/IntSize.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 static CSSPaintImageGenerator* create(const String& name, Document&, Observe
r*); | 34 static CSSPaintImageGenerator* create(const String& name, Document&, Observe
r*); |
| 35 virtual ~CSSPaintImageGenerator(); | 35 virtual ~CSSPaintImageGenerator(); |
| 36 | 36 |
| 37 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(cons
t String&, Document&, Observer*); | 37 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(cons
t String&, Document&, Observer*); |
| 38 static void init(CSSPaintImageGeneratorCreateFunction); | 38 static void init(CSSPaintImageGeneratorCreateFunction); |
| 39 | 39 |
| 40 // Invokes the CSS Paint API 'paint' callback. May return a nullptr | 40 // Invokes the CSS Paint API 'paint' callback. May return a nullptr |
| 41 // representing an invalid image if an error occurred. | 41 // representing an invalid image if an error occurred. |
| 42 virtual PassRefPtr<Image> paint(const LayoutObject&, const IntSize&) = 0; | 42 virtual PassRefPtr<Image> paint(const LayoutObject&, const IntSize&, float z
oom) = 0; |
| 43 | 43 |
| 44 virtual const Vector<CSSPropertyID>& nativeInvalidationProperties() const =
0; | 44 virtual const Vector<CSSPropertyID>& nativeInvalidationProperties() const =
0; |
| 45 virtual const Vector<AtomicString>& customInvalidationProperties() const = 0
; | 45 virtual const Vector<AtomicString>& customInvalidationProperties() const = 0
; |
| 46 | 46 |
| 47 DEFINE_INLINE_VIRTUAL_TRACE() { } | 47 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 } // namespace blink | 50 } // namespace blink |
| 51 | 51 |
| 52 #endif // CSSPaintImageGenerator_h | 52 #endif // CSSPaintImageGenerator_h |
| OLD | NEW |