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

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

Issue 1161463009: bindings: Supports [LenientThis] extended attributes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a layout test for [LenientThis]. Created 5 years, 6 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 { 165 {
166 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create(); 166 RefPtrWillBeRawPtr<TestNode> impl = TestNode::create();
167 v8::Local<v8::Object> wrapper = info.Holder(); 167 v8::Local<v8::Object> wrapper = info.Holder();
168 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo, wrapper); 168 impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTypeInfo, wrapper);
169 v8SetReturnValue(info, wrapper); 169 v8SetReturnValue(info, wrapper);
170 } 170 }
171 171
172 } // namespace TestNodeV8Internal 172 } // namespace TestNodeV8Internal
173 173
174 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = { 174 static const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = {
175 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedTo AllScripts}, 175 {"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::CheckHolder},
176 {"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}, 176 {"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::CheckHolder},
177 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts}, 177 {"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::CheckHolder},
178 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, 178 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, 0, static_cas t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::CheckHolder},
179 }; 179 };
180 180
181 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 181 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
182 { 182 {
183 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); 183 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor");
184 if (!info.IsConstructCall()) { 184 if (!info.IsConstructCall()) {
185 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestNode")); 185 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c onstructorNotCallableAsFunction("TestNode"));
186 return; 186 return;
187 } 187 }
188 188
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 } 242 }
243 243
244 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable) 244 void V8TestNode::derefObject(ScriptWrappable* scriptWrappable)
245 { 245 {
246 #if !ENABLE(OILPAN) 246 #if !ENABLE(OILPAN)
247 scriptWrappable->toImpl<TestNode>()->deref(); 247 scriptWrappable->toImpl<TestNode>()->deref();
248 #endif 248 #endif
249 } 249 }
250 250
251 } // namespace blink 251 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698