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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.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 "V8TestInterfaceEventInitConstructor.h" 9 #include "V8TestInterfaceEventInitConstructor.h"
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 TestInterfaceEventInitConstructor* impl = TestInterfaceEventInitConstructor::c reate(type, testInterfaceEventInit); 101 TestInterfaceEventInitConstructor* impl = TestInterfaceEventInitConstructor::c reate(type, testInterfaceEventInit);
102 v8::Local<v8::Object> wrapper = info.Holder(); 102 v8::Local<v8::Object> wrapper = info.Holder();
103 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventI nitConstructor::wrapperTypeInfo, wrapper); 103 wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventI nitConstructor::wrapperTypeInfo, wrapper);
104 v8SetReturnValue(info, wrapper); 104 v8SetReturnValue(info, wrapper);
105 } 105 }
106 106
107 } // namespace TestInterfaceEventInitConstructorV8Internal 107 } // namespace TestInterfaceEventInitConstructorV8Internal
108 108
109 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstruc torAccessors[] = { 109 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceEventInitConstruc torAccessors[] = {
110 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea donlyStringAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, s tatic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAl lScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 110 {"readonlyStringAttribute", TestInterfaceEventInitConstructorV8Internal::rea donlyStringAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, s tatic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype , V8DOMConfiguration::CheckHolder},
111 {"isTrusted", TestInterfaceEventInitConstructorV8Internal::isTrustedAttribut eGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttri bute>(v8::DontDelete | v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, 111 {"isTrusted", TestInterfaceEventInitConstructorV8Internal::isTrustedAttribut eGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttri bute>(v8::DontDelete | v8::ReadOnly), V8DOMConfiguration::OnInstance, V8DOMConfi guration::CheckHolder},
112 }; 112 };
113 113
114 void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::Function CallbackInfo<v8::Value>& info) { 114 void V8TestInterfaceEventInitConstructor::constructorCallback(const v8::Function CallbackInfo<v8::Value>& info) {
115 if (!info.IsConstructCall()) { 115 if (!info.IsConstructCall()) {
116 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestInterfaceEventInitConstructor")); 116 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestInterfaceEventInitConstructor"));
117 return; 117 return;
118 } 118 }
119 119
120 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) { 120 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) {
121 v8SetReturnValue(info, info.Holder()); 121 v8SetReturnValue(info, info.Holder());
(...skipping 29 matching lines...) Expand all
151 151
152 v8::Local<v8::Object> V8TestInterfaceEventInitConstructor::findInstanceInPrototy peChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { 152 v8::Local<v8::Object> V8TestInterfaceEventInitConstructor::findInstanceInPrototy peChain(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
153 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 153 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
154 } 154 }
155 155
156 TestInterfaceEventInitConstructor* V8TestInterfaceEventInitConstructor::toImplWi thTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { 156 TestInterfaceEventInitConstructor* V8TestInterfaceEventInitConstructor::toImplWi thTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
157 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 157 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
158 } 158 }
159 159
160 } // namespace blink 160 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698