| 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 "core/css/cssom/CSSStyleValue.h" | 10 #include "core/css/cssom/CSSStyleValue.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)( | 42 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)( |
| 43 const String&, | 43 const String&, |
| 44 Document&, | 44 Document&, |
| 45 Observer*); | 45 Observer*); |
| 46 static void Init(CSSPaintImageGeneratorCreateFunction); | 46 static void Init(CSSPaintImageGeneratorCreateFunction); |
| 47 | 47 |
| 48 // Invokes the CSS Paint API 'paint' callback. May return a nullptr | 48 // Invokes the CSS Paint API 'paint' callback. May return a nullptr |
| 49 // representing an invalid image if an error occurred. | 49 // representing an invalid image if an error occurred. |
| 50 virtual PassRefPtr<Image> Paint(const LayoutObject&, | 50 virtual PassRefPtr<Image> Paint(const LayoutObject&, |
| 51 const IntSize&, | 51 const IntSize&, |
| 52 float zoom, | |
| 53 const CSSStyleValueVector*) = 0; | 52 const CSSStyleValueVector*) = 0; |
| 54 | 53 |
| 55 virtual const Vector<CSSPropertyID>& NativeInvalidationProperties() const = 0; | 54 virtual const Vector<CSSPropertyID>& NativeInvalidationProperties() const = 0; |
| 56 virtual const Vector<AtomicString>& CustomInvalidationProperties() const = 0; | 55 virtual const Vector<AtomicString>& CustomInvalidationProperties() const = 0; |
| 57 virtual bool HasAlpha() const = 0; | 56 virtual bool HasAlpha() const = 0; |
| 58 virtual const Vector<CSSSyntaxDescriptor>& InputArgumentTypes() const = 0; | 57 virtual const Vector<CSSSyntaxDescriptor>& InputArgumentTypes() const = 0; |
| 59 virtual bool IsImageGeneratorReady() const = 0; | 58 virtual bool IsImageGeneratorReady() const = 0; |
| 60 | 59 |
| 61 DEFINE_INLINE_VIRTUAL_TRACE() {} | 60 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 } // namespace blink | 63 } // namespace blink |
| 65 | 64 |
| 66 #endif // CSSPaintImageGenerator_h | 65 #endif // CSSPaintImageGenerator_h |
| OLD | NEW |