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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.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 CSSPaintImageGeneratorImpl_h
6 #define CSSPaintImageGeneratorImpl_h
7
8 #include "core/css/CSSPaintImageGenerator.h"
9 #include "platform/geometry/IntSize.h"
10 #include "platform/heap/Handle.h"
11
12 namespace blink {
13
14 class CSSPaintDefinition;
15 class Document;
16 class Image;
17
18 class CSSPaintImageGeneratorImpl final : public CSSPaintImageGenerator {
19 public:
20 static PassRefPtrWillBeRawPtr<CSSPaintImageGenerator> create(const String& n ame, Document&, Observer*);
21
22 PassRefPtr<Image> paint(const IntSize&) final;
23
24 void setDefinition(PassRefPtrWillBeRawPtr<CSSPaintDefinition>);
25
26 DECLARE_VIRTUAL_TRACE();
27
28 private:
29 CSSPaintImageGeneratorImpl(Observer*);
30 CSSPaintImageGeneratorImpl(PassRefPtrWillBeRawPtr<CSSPaintDefinition>);
31
32 RefPtrWillBeMember<CSSPaintDefinition> m_definition;
33 Observer* m_observer;
34 };
35
36 } // namespace blink
37
38 #endif // CSSPaintImageGeneratorImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698