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

Side by Side Diff: Source/bindings/templates/interface.cpp

Issue 451013003: Rename V8WindowShell to WindowProxy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 {% extends 'interface_base.cpp' %} 1 {% extends 'interface_base.cpp' %}
2 2
3 3
4 {##############################################################################} 4 {##############################################################################}
5 {% macro attribute_configuration(attribute) %} 5 {% macro attribute_configuration(attribute) %}
6 {% set getter_callback = 6 {% set getter_callback =
7 '%sV8Internal::%sAttributeGetterCallback' % 7 '%sV8Internal::%sAttributeGetterCallback' %
8 (cpp_class, attribute.name) 8 (cpp_class, attribute.name)
9 if not attribute.constructor_type else 9 if not attribute.constructor_type else
10 ('%sV8Internal::%sConstructorGetterCallback' % 10 ('%sV8Internal::%sConstructorGetterCallback' %
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 if (impl->is{{special_wrap_interface}}()) 1268 if (impl->is{{special_wrap_interface}}())
1269 return wrap(to{{special_wrap_interface}}(impl), creationContext, isolate ); 1269 return wrap(to{{special_wrap_interface}}(impl), creationContext, isolate );
1270 {% endfor %} 1270 {% endfor %}
1271 v8::Handle<v8::Object> wrapper = {{v8_class}}::createWrapper(impl, creationC ontext, isolate); 1271 v8::Handle<v8::Object> wrapper = {{v8_class}}::createWrapper(impl, creationC ontext, isolate);
1272 {% if is_document %} 1272 {% if is_document %}
1273 if (wrapper.IsEmpty()) 1273 if (wrapper.IsEmpty())
1274 return wrapper; 1274 return wrapper;
1275 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate); 1275 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate);
1276 if (world.isMainWorld()) { 1276 if (world.isMainWorld()) {
1277 if (LocalFrame* frame = impl->frame()) 1277 if (LocalFrame* frame = impl->frame())
1278 frame->script().windowShell(world)->updateDocumentWrapper(wrapper); 1278 frame->script().windowProxy(world)->updateDocumentWrapper(wrapper);
1279 } 1279 }
1280 {% endif %} 1280 {% endif %}
1281 return wrapper; 1281 return wrapper;
1282 } 1282 }
1283 1283
1284 {% elif not has_custom_to_v8 and not has_custom_wrap %} 1284 {% elif not has_custom_to_v8 and not has_custom_wrap %}
1285 v8::Handle<v8::Object> wrap({{cpp_class}}* impl, v8::Handle<v8::Object> creation Context, v8::Isolate* isolate) 1285 v8::Handle<v8::Object> wrap({{cpp_class}}* impl, v8::Handle<v8::Object> creation Context, v8::Isolate* isolate)
1286 { 1286 {
1287 ASSERT(impl); 1287 ASSERT(impl);
1288 ASSERT(!DOMDataStore::containsWrapper<{{v8_class}}>(impl, isolate)); 1288 ASSERT(!DOMDataStore::containsWrapper<{{v8_class}}>(impl, isolate));
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 {% endif %} 1353 {% endif %}
1354 } 1354 }
1355 1355
1356 template<> 1356 template<>
1357 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate) 1357 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c reationContext, v8::Isolate* isolate)
1358 { 1358 {
1359 return toV8(impl, creationContext, isolate); 1359 return toV8(impl, creationContext, isolate);
1360 } 1360 }
1361 1361
1362 {% endblock %} 1362 {% endblock %}
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/tests/results/V8TestInterfaceDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698