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

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

Issue 2460423002: Use new LazyDataProperty API for DOM constructors (Closed)
Patch Set: updates Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h b/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h
index 62e15c0abec99387aa47d35f2c33bc03e17e9a69..7baf69ad8dde4cec348ac5c5a2fb4c13d1be775e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.h
@@ -102,6 +102,20 @@ class CORE_EXPORT V8DOMConfiguration final {
v8::Local<v8::Object> prototype,
const AttributeConfiguration&);
+ // A lazy data attribute is like one of the attributes added via
+ // installAttributes(), however, V8 will attempt to replace it with the value
+ // returned by the getter callback, turning it into a real data value.
+ //
+ // This also means that the AttributeConfiguration must not specify a setter,
+ // nor any non-default attributes or access control settings.
+ static void installLazyDataAttributes(
+ v8::Isolate*,
+ const DOMWrapperWorld&,
+ v8::Local<v8::ObjectTemplate> instanceTemplate,
+ v8::Local<v8::ObjectTemplate> prototypeTemplate,
+ const AttributeConfiguration*,
+ size_t attributeCount);
+
// AccessorConfiguration translates into calls to SetAccessorProperty()
// on prototype ObjectTemplate.
struct AccessorConfiguration {
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/V8DOMConfiguration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698