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 "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 void webCoreInitializeScriptWrappableForInterface(blink::TestObject* object) | 79 void webCoreInitializeScriptWrappableForInterface(blink::TestObject* object) |
80 { | 80 { |
81 blink::initializeScriptWrappableForInterface(object); | 81 blink::initializeScriptWrappableForInterface(object); |
82 } | 82 } |
83 | 83 |
84 namespace blink { | 84 namespace blink { |
85 | 85 |
86 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::createPersistentHandle, 0, 0, 0, V8TestObject::installConditionallyEna
bledMethods, V8TestObject::installConditionallyEnabledProperties, 0, WrapperType
Info::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInf
o::Independent, WrapperTypeInfo::RefCountedObject }; | 86 const WrapperTypeInfo V8TestObject::wrapperTypeInfo = { gin::kEmbedderBlink, V8T
estObject::domTemplate, V8TestObject::refObject, V8TestObject::derefObject, V8Te
stObject::createPersistentHandle, 0, 0, 0, V8TestObject::installConditionallyEna
bledMethods, V8TestObject::installConditionallyEnabledProperties, 0, WrapperType
Info::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInf
o::Independent, WrapperTypeInfo::RefCountedObject }; |
87 | 87 |
| 88 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestObject.h
. |
| 89 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
| 90 // bindings/core/v8/ScriptWrappable.h. |
| 91 const WrapperTypeInfo& TestObject::s_wrapperTypeInfo = V8TestObject::wrapperType
Info; |
| 92 |
88 namespace TestObjectV8Internal { | 93 namespace TestObjectV8Internal { |
89 | 94 |
90 template <typename T> void V8_USE(T) { } | 95 template <typename T> void V8_USE(T) { } |
91 | 96 |
92 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 97 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
93 { | 98 { |
94 v8::Handle<v8::Object> holder = info.Holder(); | 99 v8::Handle<v8::Object> holder = info.Holder(); |
95 TestObject* impl = V8TestObject::toNative(holder); | 100 TestObject* impl = V8TestObject::toNative(holder); |
96 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); | 101 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); |
97 } | 102 } |
(...skipping 11304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11402 // FIXME: We should support more exceptions. | 11407 // FIXME: We should support more exceptions. |
11403 RELEASE_ASSERT_NOT_REACHED(); | 11408 RELEASE_ASSERT_NOT_REACHED(); |
11404 } | 11409 } |
11405 block.ReThrow(); | 11410 block.ReThrow(); |
11406 return false; | 11411 return false; |
11407 } | 11412 } |
11408 return true; | 11413 return true; |
11409 } | 11414 } |
11410 | 11415 |
11411 } // namespace blink | 11416 } // namespace blink |
OLD | NEW |