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

Side by Side Diff: Source/bindings/tests/results/V8TestNode.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNodeTemplate(v8::Handle<v 8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldTy pe) 93 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNodeTemplate(v8::Handle<v 8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldTy pe)
94 { 94 {
95 desc->ReadOnlyPrototype(); 95 desc->ReadOnlyPrototype();
96 96
97 v8::Local<v8::Signature> defaultSignature; 97 v8::Local<v8::Signature> defaultSignature;
98 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestNo de", V8Node::GetTemplate(isolate, currentWorldType), V8TestNode::internalFieldCo unt, 98 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestNo de", V8Node::GetTemplate(isolate, currentWorldType), V8TestNode::internalFieldCo unt,
99 0, 0, 99 0, 0,
100 0, 0, isolate, currentWorldType); 100 0, 0, isolate, currentWorldType);
101 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. 101 UNUSED_PARAM(defaultSignature);
102 desc->SetCallHandler(V8TestNode::constructorCallback); 102 desc->SetCallHandler(V8TestNode::constructorCallback);
103 desc->SetLength(0); 103 desc->SetLength(0);
104 104
105 // Custom toString template 105 // Custom toString template
106 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate()); 106 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to StringTemplate());
107 return desc; 107 return desc;
108 } 108 }
109 109
110 v8::Handle<v8::FunctionTemplate> V8TestNode::GetTemplate(v8::Isolate* isolate, W rapperWorldType currentWorldType) 110 v8::Handle<v8::FunctionTemplate> V8TestNode::GetTemplate(v8::Isolate* isolate, W rapperWorldType currentWorldType)
111 { 111 {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &info, wrapper, i solate, WrapperConfiguration::Dependent); 158 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &info, wrapper, i solate, WrapperConfiguration::Dependent);
159 return wrapper; 159 return wrapper;
160 } 160 }
161 161
162 void V8TestNode::derefObject(void* object) 162 void V8TestNode::derefObject(void* object)
163 { 163 {
164 fromInternalPointer(object)->deref(); 164 fromInternalPointer(object)->deref();
165 } 165 }
166 166
167 } // namespace WebCore 167 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNamedConstructor.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698