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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
diff --git a/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h b/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c0c0500906d5df2796c710342b1160e896c9c04
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSPaintImageGenerator_h
+#define CSSPaintImageGenerator_h
+
+#include "platform/geometry/IntSize.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Document;
+class Image;
+
+class CSSPaintImageGenerator : public RefCountedWillBeGarbageCollected<CSSPaintImageGenerator> {
+public:
+ class Observer {
+ public:
+ virtual ~Observer() { };
+ virtual void ready() = 0;
+ };
+
+ static PassRefPtrWillBeRawPtr<CSSPaintImageGenerator> create(const String& name, Document&, Observer*);
+
+ typedef PassRefPtrWillBeRawPtr<CSSPaintImageGenerator> (*CSSPaintImageGeneratorCreateFunction)(const String&, Document&, Observer*);
+ static void init(CSSPaintImageGeneratorCreateFunction);
+
+ virtual PassRefPtr<Image> paint(const IntSize&) = 0;
+
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
+};
+
+} // namespace blink
+
+#endif // CSSPaintImageGenerator_h
« 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