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 "V8TestInterfaceEventTarget.h" | 8 #include "V8TestInterfaceEventTarget.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 template <typename T> void V8_USE(T) { } | 44 template <typename T> void V8_USE(T) { } |
45 | 45 |
46 } // namespace TestInterfaceEventTargetV8Internal | 46 } // namespace TestInterfaceEventTargetV8Internal |
47 | 47 |
48 const WrapperTypeInfo V8TestInterfaceEventTargetConstructor::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceEventTargetConstructor::domTemplate, V8Test
InterfaceEventTarget::derefObject, 0, V8TestInterfaceEventTarget::toEventTarget,
0, V8TestInterfaceEventTarget::installPerContextEnabledMethods, 0, WrapperTypeO
bjectPrototype, false }; | 48 const WrapperTypeInfo V8TestInterfaceEventTargetConstructor::wrapperTypeInfo = {
gin::kEmbedderBlink, V8TestInterfaceEventTargetConstructor::domTemplate, V8Test
InterfaceEventTarget::derefObject, 0, V8TestInterfaceEventTarget::toEventTarget,
0, V8TestInterfaceEventTarget::installPerContextEnabledMethods, 0, WrapperTypeO
bjectPrototype, false }; |
49 | 49 |
50 static void V8TestInterfaceEventTargetConstructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 50 static void V8TestInterfaceEventTargetConstructorCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
51 { | 51 { |
52 if (!info.IsConstructCall()) { | 52 if (!info.IsConstructCall()) { |
53 throwTypeError(ExceptionMessages::failedToConstruct("Name", "Please use
the 'new' operator, this DOM object constructor cannot be called as a function."
), info.GetIsolate()); | 53 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Name
"), info.GetIsolate()); |
54 return; | 54 return; |
55 } | 55 } |
56 | 56 |
57 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 57 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
58 v8SetReturnValue(info, info.Holder()); | 58 v8SetReturnValue(info, info.Holder()); |
59 return; | 59 return; |
60 } | 60 } |
61 | 61 |
62 Document* document = currentDOMWindow(info.GetIsolate())->document(); | 62 Document* document = currentDOMWindow(info.GetIsolate())->document(); |
63 ASSERT(document); | 63 ASSERT(document); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 fromInternalPointer(object)->deref(); | 167 fromInternalPointer(object)->deref(); |
168 } | 168 } |
169 | 169 |
170 template<> | 170 template<> |
171 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 171 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
172 { | 172 { |
173 return toV8(impl, creationContext, isolate); | 173 return toV8(impl, creationContext, isolate); |
174 } | 174 } |
175 | 175 |
176 } // namespace WebCore | 176 } // namespace WebCore |
OLD | NEW |