Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(834)

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 "platform/geometry/IntSize.h"
9 #include "platform/heap/Handle.h"
10
11 namespace blink {
12
13 class Document;
14 class Image;
15
16 class CSSPaintImageGenerator : public RefCountedWillBeGarbageCollected<CSSPaintI mageGenerator> {
17 public:
18 class Observer {
19 public:
20 virtual ~Observer() { };
21 virtual void ready() = 0;
22 };
23
24 static PassRefPtrWillBeRawPtr<CSSPaintImageGenerator> create(const String& n ame, Document&, Observer*);
25
26 typedef PassRefPtrWillBeRawPtr<CSSPaintImageGenerator> (*CSSPaintImageGenera torCreateFunction)(const String&, Document&, Observer*);
27 static void init(CSSPaintImageGeneratorCreateFunction);
28
29 virtual PassRefPtr<Image> paint(const IntSize&) = 0;
30
31 DEFINE_INLINE_VIRTUAL_TRACE() { }
32 };
33
34 } // namespace blink
35
36 #endif // CSSPaintImageGenerator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSPaintImageGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698