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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEmpty.cpp

Issue 23068032: Add constants and primitive type readonly attributes to Python IDL compiler (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Re-reupload Created 7 years, 3 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 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } // namespace TestInterfaceEmptyV8Internal 63 } // namespace TestInterfaceEmptyV8Internal
64 64
65 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEmptyTemplate(v8 ::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curr entWorldType) 65 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestInterfaceEmptyTemplate(v8 ::Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curr entWorldType)
66 { 66 {
67 desc->ReadOnlyPrototype(); 67 desc->ReadOnlyPrototype();
68 68
69 v8::Local<v8::Signature> defaultSignature; 69 v8::Local<v8::Signature> defaultSignature;
70 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestIn terfaceEmpty", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceEmpty::internal FieldCount, 70 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestIn terfaceEmpty", v8::Local<v8::FunctionTemplate>(), V8TestInterfaceEmpty::internal FieldCount,
71 0, 0, 71 0, 0,
72 0, 0, isolate, currentWorldType); 72 0, 0, isolate, currentWorldType);
73 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 73 UNUSED_PARAM(defaultSignature);
74 74
75 // Custom toString template 75 // Custom toString template
76 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 76 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
77 return desc; 77 return desc;
78 } 78 }
79 79
80 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEmpty::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) 80 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEmpty::GetTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
81 { 81 {
82 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 82 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
83 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info); 83 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo rldType).find(&info);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEmpty>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 123 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEmpty>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
124 return wrapper; 124 return wrapper;
125 } 125 }
126 126
127 void V8TestInterfaceEmpty::derefObject(void* object) 127 void V8TestInterfaceEmpty::derefObject(void* object)
128 { 128 {
129 fromInternalPointer(object)->deref(); 129 fromInternalPointer(object)->deref();
130 } 130 }
131 131
132 } // namespace WebCore 132 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceImplementedAs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698