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

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

Issue 2460423002: Use new LazyDataProperty API for DOM constructors (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 v8::Local<v8::ObjectTemplate> instanceTemplate, 95 v8::Local<v8::ObjectTemplate> instanceTemplate,
96 v8::Local<v8::ObjectTemplate> prototypeTemplate, 96 v8::Local<v8::ObjectTemplate> prototypeTemplate,
97 const AttributeConfiguration&); 97 const AttributeConfiguration&);
98 98
99 static void installAttribute(v8::Isolate*, 99 static void installAttribute(v8::Isolate*,
100 const DOMWrapperWorld&, 100 const DOMWrapperWorld&,
101 v8::Local<v8::Object> instance, 101 v8::Local<v8::Object> instance,
102 v8::Local<v8::Object> prototype, 102 v8::Local<v8::Object> prototype,
103 const AttributeConfiguration&); 103 const AttributeConfiguration&);
104 104
105 static void installLazyDataAttributes(
haraken 2016/11/01 07:17:31 Add a comment about what the lazy data attribute m
jochen (gone - plz use gerrit) 2016/11/02 11:57:00 done
106 v8::Isolate*,
107 const DOMWrapperWorld&,
108 v8::Local<v8::ObjectTemplate> instanceTemplate,
109 v8::Local<v8::ObjectTemplate> prototypeTemplate,
110 const AttributeConfiguration*,
111 size_t attributeCount);
112
105 // AccessorConfiguration translates into calls to SetAccessorProperty() 113 // AccessorConfiguration translates into calls to SetAccessorProperty()
106 // on prototype ObjectTemplate. 114 // on prototype ObjectTemplate.
107 struct AccessorConfiguration { 115 struct AccessorConfiguration {
108 AccessorConfiguration& operator=(const AccessorConfiguration&) = delete; 116 AccessorConfiguration& operator=(const AccessorConfiguration&) = delete;
109 DISALLOW_NEW(); 117 DISALLOW_NEW();
110 const char* const name; 118 const char* const name;
111 v8::FunctionCallback getter; 119 v8::FunctionCallback getter;
112 v8::FunctionCallback setter; 120 v8::FunctionCallback setter;
113 v8::FunctionCallback getterForMainWorld; 121 v8::FunctionCallback getterForMainWorld;
114 v8::FunctionCallback setterForMainWorld; 122 v8::FunctionCallback setterForMainWorld;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Sets the class string of platform objects, interface prototype objects, 300 // Sets the class string of platform objects, interface prototype objects,
293 // etc. See also http://heycam.github.io/webidl/#dfn-class-string 301 // etc. See also http://heycam.github.io/webidl/#dfn-class-string
294 static void setClassString(v8::Isolate*, 302 static void setClassString(v8::Isolate*,
295 v8::Local<v8::ObjectTemplate>, 303 v8::Local<v8::ObjectTemplate>,
296 const char* classString); 304 const char* classString);
297 }; 305 };
298 306
299 } // namespace blink 307 } // namespace blink
300 308
301 #endif // V8DOMConfiguration_h 309 #endif // V8DOMConfiguration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698