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 "V8TestInterfaceDocument.h" | 8 #include "V8TestInterfaceDocument.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 } // namespace blink | 34 } // namespace blink |
35 | 35 |
36 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceDocument*
object) | 36 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceDocument*
object) |
37 { | 37 { |
38 blink::initializeScriptWrappableForInterface(object); | 38 blink::initializeScriptWrappableForInterface(object); |
39 } | 39 } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 const WrapperTypeInfo V8TestInterfaceDocument::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestInterfaceDocument::domTemplate, V8TestInterfaceDocument::derefObje
ct, 0, V8TestInterfaceDocument::toEventTarget, 0, V8TestInterfaceDocument::insta
llPerContextEnabledMethods, &V8Document::wrapperTypeInfo, WrapperTypeObjectProto
type, WillBeGarbageCollectedObject }; | 42 const WrapperTypeInfo V8TestInterfaceDocument::wrapperTypeInfo = { gin::kEmbedde
rBlink, V8TestInterfaceDocument::domTemplate, V8TestInterfaceDocument::derefObje
ct, 0, V8TestInterfaceDocument::toEventTarget, 0, V8TestInterfaceDocument::insta
llConditionallyEnabledMethods, &V8Document::wrapperTypeInfo, WrapperTypeObjectPr
ototype, WillBeGarbageCollectedObject }; |
43 | 43 |
44 namespace TestInterfaceDocumentV8Internal { | 44 namespace TestInterfaceDocumentV8Internal { |
45 | 45 |
46 template <typename T> void V8_USE(T) { } | 46 template <typename T> void V8_USE(T) { } |
47 | 47 |
48 } // namespace TestInterfaceDocumentV8Internal | 48 } // namespace TestInterfaceDocumentV8Internal |
49 | 49 |
50 static void installV8TestInterfaceDocumentTemplate(v8::Handle<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate) | 50 static void installV8TestInterfaceDocumentTemplate(v8::Handle<v8::FunctionTempla
te> functionTemplate, v8::Isolate* isolate) |
51 { | 51 { |
52 functionTemplate->ReadOnlyPrototype(); | 52 functionTemplate->ReadOnlyPrototype(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // initializeMainWorld may have created a wrapper for the object, re
try from the start. | 119 // initializeMainWorld may have created a wrapper for the object, re
try from the start. |
120 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapper<V8TestInte
rfaceDocument>(impl.get(), isolate); | 120 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapper<V8TestInte
rfaceDocument>(impl.get(), isolate); |
121 if (!wrapper.IsEmpty()) | 121 if (!wrapper.IsEmpty()) |
122 return wrapper; | 122 return wrapper; |
123 } | 123 } |
124 } | 124 } |
125 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 125 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
126 if (UNLIKELY(wrapper.IsEmpty())) | 126 if (UNLIKELY(wrapper.IsEmpty())) |
127 return wrapper; | 127 return wrapper; |
128 | 128 |
129 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 129 installConditionallyEnabledProperties(wrapper, isolate); |
130 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceDocument>(impl, &wra
pperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); | 130 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceDocument>(impl, &wra
pperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent); |
131 return wrapper; | 131 return wrapper; |
132 } | 132 } |
133 | 133 |
134 void V8TestInterfaceDocument::derefObject(ScriptWrappableBase* internalPointer) | 134 void V8TestInterfaceDocument::derefObject(ScriptWrappableBase* internalPointer) |
135 { | 135 { |
136 #if !ENABLE(OILPAN) | 136 #if !ENABLE(OILPAN) |
137 fromInternalPointer(internalPointer)->deref(); | 137 fromInternalPointer(internalPointer)->deref(); |
138 #endif // !ENABLE(OILPAN) | 138 #endif // !ENABLE(OILPAN) |
139 } | 139 } |
140 | 140 |
141 template<> | 141 template<> |
142 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 142 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
143 { | 143 { |
144 return toV8(impl, creationContext, isolate); | 144 return toV8(impl, creationContext, isolate); |
145 } | 145 } |
146 | 146 |
147 } // namespace blink | 147 } // namespace blink |
OLD | NEW |