OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CSSPaintImageGenerator_h | |
6 #define CSSPaintImageGenerator_h | |
7 | |
8 #include "core/CoreExport.h" | |
9 #include "platform/geometry/IntSize.h" | |
10 #include "platform/heap/Handle.h" | |
11 | |
12 namespace blink { | |
13 | |
14 class Document; | |
15 class Image; | |
16 | |
17 class CORE_EXPORT CSSPaintImageGenerator : public GarbageCollectedFinalized<CSSP aintImageGenerator> { | |
chrishtr
2016/04/06 18:55:20
Why do you need both a CSSPaintImageGenerator and
ikilpatrick
2016/04/07 23:03:00
Source/core cannot depend on Source/modules. Hence
| |
18 public: | |
19 class Observer { | |
20 public: | |
21 virtual ~Observer() { }; | |
22 virtual void paintImageGeneratorReady() = 0; | |
23 }; | |
24 | |
25 static CSSPaintImageGenerator* create(const String& name, Document&, Observe r*); | |
26 virtual ~CSSPaintImageGenerator(); | |
27 | |
28 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(cons t String&, Document&, Observer*); | |
29 static void init(CSSPaintImageGeneratorCreateFunction); | |
30 | |
31 virtual PassRefPtr<Image> paint(const IntSize&) = 0; | |
32 | |
33 DEFINE_INLINE_VIRTUAL_TRACE() { } | |
34 }; | |
35 | |
36 } // namespace blink | |
37 | |
38 #endif // CSSPaintImageGenerator_h | |
OLD | NEW |