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

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 00d12d94473102318911cb6ecfa5ece56338c249..dd3d0e0aa41e11885764c4f317eef89b153345e5 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"
@@ -91,6 +92,7 @@ public:
V8NPObjectMap* getV8NPObjectMap() { return &m_v8NPObjectMap; }
void addCustomElementBinding(CustomElementDefinition*, PassOwnPtr<CustomElementBinding>);
+ void addCSSPaintBinding(PassOwnPtr<CSSPaintBinding>);
V8DOMActivityLogger* activityLogger() const { return m_activityLogger; }
void setActivityLogger(V8DOMActivityLogger* activityLogger) { m_activityLogger = activityLogger; }
@@ -124,6 +126,9 @@ private:
typedef Vector<OwnPtr<CustomElementBinding>> CustomElementBindingList;
CustomElementBindingList m_customElementBindings;
+ typedef Vector<OwnPtr<CSSPaintBinding>> CSSPaintBindingList;
+ CSSPaintBindingList m_cssPaintBindings;
ikilpatrick 2016/03/30 19:12:50 Instead of this I could also add a V8PerContextDat
+
// This is owned by a static hash map in V8DOMActivityLogger.
V8DOMActivityLogger* m_activityLogger;

Powered by Google App Engine
This is Rietveld 408576698