OLD | NEW |
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 "V8TestInterfaceCustomConstructor.h" | 8 #include "V8TestInterfaceCustomConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 0, 0, | 56 0, 0, |
57 0, 0, | 57 0, 0, |
58 0, 0); | 58 0, 0); |
59 functionTemplate->SetCallHandler(V8TestInterfaceCustomConstructor::construct
orCallback); | 59 functionTemplate->SetCallHandler(V8TestInterfaceCustomConstructor::construct
orCallback); |
60 functionTemplate->SetLength(0); | 60 functionTemplate->SetLength(0); |
61 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 61 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
62 ALLOW_UNUSED_LOCAL(instanceTemplate); | 62 ALLOW_UNUSED_LOCAL(instanceTemplate); |
63 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 63 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
64 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 64 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
65 | 65 |
| 66 prototypeTemplate->Set(v8::Symbol::GetToStringTag(isolate), v8AtomicString(i
solate, "TestInterfaceCustomConstructor")); |
| 67 |
66 // Custom toString template | 68 // Custom toString template |
67 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 69 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
68 } | 70 } |
69 | 71 |
70 v8::Local<v8::FunctionTemplate> V8TestInterfaceCustomConstructor::domTemplate(v8
::Isolate* isolate) | 72 v8::Local<v8::FunctionTemplate> V8TestInterfaceCustomConstructor::domTemplate(v8
::Isolate* isolate) |
71 { | 73 { |
72 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceCustomConstructorTemplate); | 74 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterfaceCustomConstructorTemplate); |
73 } | 75 } |
74 | 76 |
75 bool V8TestInterfaceCustomConstructor::hasInstance(v8::Local<v8::Value> v8Value,
v8::Isolate* isolate) | 77 bool V8TestInterfaceCustomConstructor::hasInstance(v8::Local<v8::Value> v8Value,
v8::Isolate* isolate) |
(...skipping 15 matching lines...) Expand all Loading... |
91 { | 93 { |
92 scriptWrappable->toImpl<TestInterfaceCustomConstructor>()->ref(); | 94 scriptWrappable->toImpl<TestInterfaceCustomConstructor>()->ref(); |
93 } | 95 } |
94 | 96 |
95 void V8TestInterfaceCustomConstructor::derefObject(ScriptWrappable* scriptWrappa
ble) | 97 void V8TestInterfaceCustomConstructor::derefObject(ScriptWrappable* scriptWrappa
ble) |
96 { | 98 { |
97 scriptWrappable->toImpl<TestInterfaceCustomConstructor>()->deref(); | 99 scriptWrappable->toImpl<TestInterfaceCustomConstructor>()->deref(); |
98 } | 100 } |
99 | 101 |
100 } // namespace blink | 102 } // namespace blink |
OLD | NEW |