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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h

Issue 1839913002: Implement PaintWorkletGlobalScope#registerPaint() for the CSS Paint API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/bindings/core/v8/V8PerContextData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
index b81756c07c7e9fd8c65dfdf188866caa08aee5f7..814618c7cc23321a855edf1533686e179717ec4b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
@@ -31,6 +31,7 @@
#ifndef V8PerContextData_h
#define V8PerContextData_h
+#include "bindings/core/v8/CSSPaintBinding.h"
#include "bindings/core/v8/CustomElementBinding.h"
#include "bindings/core/v8/ScopedPersistent.h"
#include "bindings/core/v8/V8GlobalValueMap.h"
@@ -90,6 +91,7 @@ public:
V8NPObjectMap* getV8NPObjectMap() { return &m_v8NPObjectMap; }
void addCustomElementBinding(PassOwnPtr<CustomElementBinding>);
+ void addCSSPaintBinding(PassOwnPtr<CSSPaintBinding>);
V8DOMActivityLogger* activityLogger() const { return m_activityLogger; }
void setActivityLogger(V8DOMActivityLogger* activityLogger) { m_activityLogger = activityLogger; }
@@ -123,6 +125,9 @@ private:
typedef Vector<OwnPtr<CustomElementBinding>> CustomElementBindingList;
CustomElementBindingList m_customElementBindings;
+ typedef Vector<OwnPtr<CSSPaintBinding>> CSSPaintBindingList;
+ CSSPaintBindingList m_cssPaintBindings;
+
// This is owned by a static hash map in V8DOMActivityLogger.
V8DOMActivityLogger* m_activityLogger;

Powered by Google App Engine
This is Rietveld 408576698