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 18 matching lines...) Expand all Loading... |
29 const WrapperTypeInfo& TestInterfaceCustomConstructor::s_wrapperTypeInfo = V8Tes
tInterfaceCustomConstructor::wrapperTypeInfo; | 29 const WrapperTypeInfo& TestInterfaceCustomConstructor::s_wrapperTypeInfo = V8Tes
tInterfaceCustomConstructor::wrapperTypeInfo; |
30 | 30 |
31 namespace TestInterfaceCustomConstructorV8Internal { | 31 namespace TestInterfaceCustomConstructorV8Internal { |
32 | 32 |
33 } // namespace TestInterfaceCustomConstructorV8Internal | 33 } // namespace TestInterfaceCustomConstructorV8Internal |
34 | 34 |
35 void V8TestInterfaceCustomConstructor::constructorCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 35 void V8TestInterfaceCustomConstructor::constructorCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
36 { | 36 { |
37 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); | 37 TRACE_EVENT_SCOPED_SAMPLING_STATE("blink", "DOMConstructor"); |
38 if (!info.IsConstructCall()) { | 38 if (!info.IsConstructCall()) { |
39 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("TestInterfaceCustomConstructor"), info.GetIsolate()); | 39 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::c
onstructorNotCallableAsFunction("TestInterfaceCustomConstructor")); |
40 return; | 40 return; |
41 } | 41 } |
42 | 42 |
43 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 43 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
44 v8SetReturnValue(info, info.Holder()); | 44 v8SetReturnValue(info, info.Holder()); |
45 return; | 45 return; |
46 } | 46 } |
47 | 47 |
48 V8TestInterfaceCustomConstructor::constructorCustom(info); | 48 V8TestInterfaceCustomConstructor::constructorCustom(info); |
49 } | 49 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 scriptWrappableBase->toImpl<TestInterfaceCustomConstructor>()->deref(); | 99 scriptWrappableBase->toImpl<TestInterfaceCustomConstructor>()->deref(); |
100 } | 100 } |
101 | 101 |
102 template<> | 102 template<> |
103 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 103 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCustomConstructor* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
104 { | 104 { |
105 return toV8(impl, creationContext, isolate); | 105 return toV8(impl, creationContext, isolate); |
106 } | 106 } |
107 | 107 |
108 } // namespace blink | 108 } // namespace blink |
OLD | NEW |