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

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

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 es.throwIfNeeded(); 112 es.throwIfNeeded();
113 } 113 }
114 114
115 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String> name, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 115 static void hrefThrowsAttributeSetterCallback(v8::Local<v8::String> name, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
116 { 116 {
117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
118 TestNodeV8Internal::hrefThrowsAttributeSetter(name, jsValue, info); 118 TestNodeV8Internal::hrefThrowsAttributeSetter(name, jsValue, info);
119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
120 } 120 }
121 121
122 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) 122 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
123 { 123 {
124 124
125 RefPtr<TestNode> impl = TestNode::create(); 125 RefPtr<TestNode> impl = TestNode::create();
126 v8::Handle<v8::Object> wrapper = args.Holder(); 126 v8::Handle<v8::Object> wrapper = info.Holder();
127 127
128 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl.release(), &V8Test Node::wrapperTypeInfo, wrapper, args.GetIsolate(), WrapperConfiguration::Depende nt); 128 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl.release(), &V8Test Node::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Depende nt);
129 args.GetReturnValue().Set(wrapper); 129 info.GetReturnValue().Set(wrapper);
130 } 130 }
131 131
132 } // namespace TestNodeV8Internal 132 } // namespace TestNodeV8Internal
133 133
134 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] = { 134 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] = {
135 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 135 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
136 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins tance */}, 136 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins tance */},
137 }; 137 };
138 138
139 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 139 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
140 { 140 {
141 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); 141 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor");
142 if (!args.IsConstructCall()) { 142 if (!info.IsConstructCall()) {
143 throwTypeError(ExceptionMessages::failedToConstruct("TestNode", "Please use the 'new' operator, this DOM object constructor cannot be called as a functi on."), args.GetIsolate()); 143 throwTypeError(ExceptionMessages::failedToConstruct("TestNode", "Please use the 'new' operator, this DOM object constructor cannot be called as a functi on."), info.GetIsolate());
144 return; 144 return;
145 } 145 }
146 146
147 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 147 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
148 args.GetReturnValue().Set(args.Holder()); 148 info.GetReturnValue().Set(info.Holder());
149 return; 149 return;
150 } 150 }
151 151
152 TestNodeV8Internal::constructor(args); 152 TestNodeV8Internal::constructor(info);
153 } 153 }
154 154
155 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNodeTemplate(v8::Handle<v 8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldTy pe) 155 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestNodeTemplate(v8::Handle<v 8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWorldTy pe)
156 { 156 {
157 desc->ReadOnlyPrototype(); 157 desc->ReadOnlyPrototype();
158 158
159 v8::Local<v8::Signature> defaultSignature; 159 v8::Local<v8::Signature> defaultSignature;
160 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestNo de", V8Node::GetTemplate(isolate, currentWorldType), V8TestNode::internalFieldCo unt, 160 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestNo de", V8Node::GetTemplate(isolate, currentWorldType), V8TestNode::internalFieldCo unt,
161 V8TestNodeAttributes, WTF_ARRAY_LENGTH(V8TestNodeAttributes), 161 V8TestNodeAttributes, WTF_ARRAY_LENGTH(V8TestNodeAttributes),
162 0, 0, 162 0, 0,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); 221 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent);
222 return wrapper; 222 return wrapper;
223 } 223 }
224 224
225 void V8TestNode::derefObject(void* object) 225 void V8TestNode::derefObject(void* object)
226 { 226 {
227 fromInternalPointer(object)->deref(); 227 fromInternalPointer(object)->deref();
228 } 228 }
229 229
230 } // namespace WebCore 230 } // 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