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 "V8TestException.h" | 8 #include "V8TestException.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 | 29 |
30 void webCoreInitializeScriptWrappableForInterface(blink::TestException* object) | 30 void webCoreInitializeScriptWrappableForInterface(blink::TestException* object) |
31 { | 31 { |
32 blink::initializeScriptWrappableForInterface(object); | 32 blink::initializeScriptWrappableForInterface(object); |
33 } | 33 } |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestException::domTemplate, V8TestException::refObject, V8TestException::deref
Object, V8TestException::createPersistentHandle, 0, 0, 0, V8TestException::insta
llConditionallyEnabledMethods, V8TestException::installConditionallyEnabledPrope
rties, 0, WrapperTypeInfo::WrapperTypeExceptionPrototype, WrapperTypeInfo::Objec
tClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; | 37 const WrapperTypeInfo V8TestException::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestException::domTemplate, V8TestException::refObject, V8TestException::deref
Object, V8TestException::createPersistentHandle, 0, 0, 0, V8TestException::insta
llConditionallyEnabledMethods, V8TestException::installConditionallyEnabledPrope
rties, 0, WrapperTypeInfo::WrapperTypeExceptionPrototype, WrapperTypeInfo::Objec
tClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject }; |
38 | 38 |
| 39 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestExceptio
n.h. |
| 40 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 41 // bindings/core/v8/ScriptWrappable.h. |
| 42 const WrapperTypeInfo& TestException::s_wrapperTypeInfo = V8TestException::wrapp
erTypeInfo; |
| 43 |
39 namespace TestExceptionV8Internal { | 44 namespace TestExceptionV8Internal { |
40 | 45 |
41 template <typename T> void V8_USE(T) { } | 46 template <typename T> void V8_USE(T) { } |
42 | 47 |
43 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 48 static void readonlyUnsignedShortAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
44 { | 49 { |
45 v8::Handle<v8::Object> holder = info.Holder(); | 50 v8::Handle<v8::Object> holder = info.Holder(); |
46 TestException* impl = V8TestException::toNative(holder); | 51 TestException* impl = V8TestException::toNative(holder); |
47 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute()); | 52 v8SetReturnValueUnsigned(info, impl->readonlyUnsignedShortAttribute()); |
48 } | 53 } |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 return 0; | 180 return 0; |
176 } | 181 } |
177 | 182 |
178 template<> | 183 template<> |
179 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 184 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
180 { | 185 { |
181 return toV8(impl, creationContext, isolate); | 186 return toV8(impl, creationContext, isolate); |
182 } | 187 } |
183 | 188 |
184 } // namespace blink | 189 } // namespace blink |
OLD | NEW |