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

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

Issue 425853006: Introduce V8DOMConfiguration::InstanceOrPrototype enum (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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestNode.h" 8 #include "V8TestNode.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 { 167 {
168 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create(); 168 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create();
169 v8::Handle<v8::Object> wrapper = info.Holder(); 169 v8::Handle<v8::Object> wrapper = info.Holder();
170 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl.release(), &V8Test Node::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Depende nt); 170 V8DOMWrapper::associateObjectWithWrapper<V8TestNode>(impl.release(), &V8Test Node::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration::Depende nt);
171 v8SetReturnValue(info, wrapper); 171 v8SetReturnValue(info, wrapper);
172 } 172 }
173 173
174 } // namespace TestNodeV8Internal 174 } // namespace TestNodeV8Internal
175 175
176 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] = { 176 static const V8DOMConfiguration::AttributeConfiguration V8TestNodeAttributes[] = {
177 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts, 0 /* on instance */}, 177 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts, V8DOMConfiguration::OnInstance},
178 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, 0 /* on instance */}, 178 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
179 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, 0 /* on instance */}, 179 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
180 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, 0 /* on instance */}, 180 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance},
181 }; 181 };
182 182
183 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 183 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
184 { 184 {
185 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 185 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
186 if (!info.IsConstructCall()) { 186 if (!info.IsConstructCall()) {
187 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test Node"), info.GetIsolate()); 187 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Test Node"), info.GetIsolate());
188 return; 188 return;
189 } 189 }
190 190
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 #endif // !ENABLE(OILPAN) 274 #endif // !ENABLE(OILPAN)
275 } 275 }
276 276
277 template<> 277 template<>
278 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate) 278 v8::Handle<v8::Value> toV8NoInline(TestNode* impl, v8::Handle<v8::Object> creati onContext, v8::Isolate* isolate)
279 { 279 {
280 return toV8(impl, creationContext, isolate); 280 return toV8(impl, creationContext, isolate);
281 } 281 }
282 282
283 } // namespace blink 283 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698