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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.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 "V8TestInterfaceConstructor.h" 9 #include "V8TestInterfaceConstructor.h"
10 10
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceConstructorConstruc torCallback); 356 result = v8::FunctionTemplate::New(isolate, V8TestInterfaceConstructorConstruc torCallback);
357 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate(); 357 v8::Local<v8::ObjectTemplate> instanceTemplate = result->InstanceTemplate();
358 instanceTemplate->SetInternalFieldCount(V8TestInterfaceConstructor::internalFi eldCount); 358 instanceTemplate->SetInternalFieldCount(V8TestInterfaceConstructor::internalFi eldCount);
359 result->SetClassName(v8AtomicString(isolate, "TestInterfaceConstructor")); 359 result->SetClassName(v8AtomicString(isolate, "TestInterfaceConstructor"));
360 result->Inherit(V8TestInterfaceConstructor::domTemplate(isolate, world)); 360 result->Inherit(V8TestInterfaceConstructor::domTemplate(isolate, world));
361 data->setInterfaceTemplate(world, &domTemplateKey, result); 361 data->setInterfaceTemplate(world, &domTemplateKey, result);
362 return result; 362 return result;
363 } 363 }
364 364
365 void V8TestInterfaceConstructor::constructorCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) { 365 void V8TestInterfaceConstructor::constructorCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) {
366 UseCounter::countIfNotPrivateScript(info.GetIsolate(), currentExecutionContext (info.GetIsolate()), UseCounter::TestFeature); 366 UseCounter::count(currentExecutionContext(info.GetIsolate()), UseCounter::Test Feature);
367 if (!info.IsConstructCall()) { 367 if (!info.IsConstructCall()) {
368 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestInterfaceConstructor")); 368 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::const ructorNotCallableAsFunction("TestInterfaceConstructor"));
369 return; 369 return;
370 } 370 }
371 371
372 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) { 372 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExisti ngObject) {
373 v8SetReturnValue(info, info.Holder()); 373 v8SetReturnValue(info, info.Holder());
374 return; 374 return;
375 } 375 }
376 376
(...skipping 25 matching lines...) Expand all
402 402
403 v8::Local<v8::Object> V8TestInterfaceConstructor::findInstanceInPrototypeChain(v 8::Local<v8::Value> v8Value, v8::Isolate* isolate) { 403 v8::Local<v8::Object> V8TestInterfaceConstructor::findInstanceInPrototypeChain(v 8::Local<v8::Value> v8Value, v8::Isolate* isolate) {
404 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value); 404 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT ypeInfo, v8Value);
405 } 405 }
406 406
407 TestInterfaceConstructor* V8TestInterfaceConstructor::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) { 407 TestInterfaceConstructor* V8TestInterfaceConstructor::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) {
408 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 408 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
409 } 409 }
410 410
411 } // namespace blink 411 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698