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 "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceEventConst
ructor* object) | 37 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceEventConst
ructor* object) |
38 { | 38 { |
39 blink::initializeScriptWrappableForInterface(object); | 39 blink::initializeScriptWrappableForInterface(object); |
40 } | 40 } |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::refObject, V8TestInterfaceEventConstructor::derefObject, V8TestIn
terfaceEventConstructor::createPersistentHandle, 0, 0, 0, V8TestInterfaceEventCo
nstructor::installConditionallyEnabledMethods, V8TestInterfaceEventConstructor::
installConditionallyEnabledProperties, &V8Event::wrapperTypeInfo, WrapperTypeObj
ectPrototype, WillBeGarbageCollectedObject }; | 44 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::refObject, V8TestInterfaceEventConstructor::derefObject, V8TestIn
terfaceEventConstructor::createPersistentHandle, 0, 0, 0, V8TestInterfaceEventCo
nstructor::installConditionallyEnabledMethods, V8TestInterfaceEventConstructor::
installConditionallyEnabledProperties, &V8Event::wrapperTypeInfo, WrapperTypeObj
ectPrototype, WillBeGarbageCollectedObject }; |
45 | 45 |
| 46 // The definition of TestInterfaceEventConstructor's WrapperTypeInfo. If TestInt
erfaceEventConstructor inherits |
| 47 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the |
| 48 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL |
| 49 // file as an extended attribute in order to let IDL compiler know that |
| 50 // TestInterfaceEventConstructor doesn't inherit from ScriptWrappable. Note that |
| 51 // NotScriptWrappable is inheritable. |
| 52 const WrapperTypeInfo& TestInterfaceEventConstructor::s_wrapperTypeInfo = V8Test
InterfaceEventConstructor::wrapperTypeInfo; |
| 53 |
46 namespace TestInterfaceEventConstructorV8Internal { | 54 namespace TestInterfaceEventConstructorV8Internal { |
47 | 55 |
48 template <typename T> void V8_USE(T) { } | 56 template <typename T> void V8_USE(T) { } |
49 | 57 |
50 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 58 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
51 { | 59 { |
52 v8::Handle<v8::Object> holder = info.Holder(); | 60 v8::Handle<v8::Object> holder = info.Holder(); |
53 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); | 61 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
54 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 62 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
55 } | 63 } |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 #endif | 440 #endif |
433 } | 441 } |
434 | 442 |
435 template<> | 443 template<> |
436 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 444 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
437 { | 445 { |
438 return toV8(impl, creationContext, isolate); | 446 return toV8(impl, creationContext, isolate); |
439 } | 447 } |
440 | 448 |
441 } // namespace blink | 449 } // namespace blink |
OLD | NEW |