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

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

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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
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. 5 // This file has been auto-generated by code_generator_v8.py.
6 // DO NOT MODIFY! 6 // DO NOT MODIFY!
7 7
8 // clang-format off 8 // clang-format off
9 #include "V8TestNode.h" 9 #include "V8TestNode.h"
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) { 179 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
180 TestNode* impl = TestNode::create(); 180 TestNode* impl = TestNode::create();
181 v8::Local<v8::Object> wrapper = info.Holder(); 181 v8::Local<v8::Object> wrapper = info.Holder();
182 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTy peInfo, wrapper); 182 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestNode::wrapperTy peInfo, wrapper);
183 v8SetReturnValue(info, wrapper); 183 v8SetReturnValue(info, wrapper);
184 } 184 }
185 185
186 } // namespace TestNodeV8Internal 186 } // namespace TestNodeV8Internal
187 187
188 const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = { 188 const V8DOMConfiguration::AccessorConfiguration V8TestNodeAccessors[] = {
189 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig uration::OnPrototype, V8DOMConfiguration::CheckHolder}, 189 {"href", TestNodeV8Internal::hrefAttributeGetterCallback, TestNodeV8Internal ::hrefAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder},
190 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 190 {"hrefThrows", TestNodeV8Internal::hrefThrowsAttributeGetterCallback, TestNo deV8Internal::hrefThrowsAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V 8DOMConfiguration::CheckHolder},
191 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedT oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 191 {"hrefCallWith", TestNodeV8Internal::hrefCallWithAttributeGetterCallback, Te stNodeV8Internal::hrefCallWithAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEF AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder},
192 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, nullptr, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}, 192 {"hrefByteString", TestNodeV8Internal::hrefByteStringAttributeGetterCallback , TestNodeV8Internal::hrefByteStringAttributeSetterCallback, 0, 0, nullptr, 0, v 8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder},
193 }; 193 };
194 194
195 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { 195 void V8TestNode::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
196 if (!info.IsConstructCall()) { 196 if (!info.IsConstructCall()) {
197 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestNode")); 197 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestNode"));
198 return; 198 return;
199 } 199 }
200 200
201 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) { 201 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) {
202 v8SetReturnValue(info, info.Holder()); 202 v8SetReturnValue(info, info.Holder());
(...skipping 29 matching lines...) Expand all
232 232
233 v8::Local<v8::Object> V8TestNode::findInstanceInPrototypeChain(v8::Local<v8::Val ue> v8Value, v8::Isolate* isolate) { 233 v8::Local<v8::Object> V8TestNode::findInstanceInPrototypeChain(v8::Local<v8::Val ue> v8Value, v8::Isolate* isolate) {
234 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 234 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
235 } 235 }
236 236
237 TestNode* V8TestNode::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Va lue> value) { 237 TestNode* V8TestNode::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Va lue> value) {
238 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 238 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
239 } 239 }
240 240
241 } // namespace blink 241 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698