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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 { | 97 { |
98 return toNative(object); | 98 return toNative(object); |
99 } | 99 } |
100 | 100 |
101 v8::Handle<v8::Object> wrap(TestInterfaceDocument* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 101 v8::Handle<v8::Object> wrap(TestInterfaceDocument* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
102 { | 102 { |
103 ASSERT(impl); | 103 ASSERT(impl); |
104 v8::Handle<v8::Object> wrapper = V8TestInterfaceDocument::createWrapper(impl
, creationContext, isolate); | 104 v8::Handle<v8::Object> wrapper = V8TestInterfaceDocument::createWrapper(impl
, creationContext, isolate); |
105 if (wrapper.IsEmpty()) | 105 if (wrapper.IsEmpty()) |
106 return wrapper; | 106 return wrapper; |
107 DOMWrapperWorld* world = DOMWrapperWorld::current(isolate); | 107 DOMWrapperWorld& world = DOMWrapperWorld::current(isolate); |
108 if (world->isMainWorld()) { | 108 if (world.isMainWorld()) { |
109 if (LocalFrame* frame = impl->frame()) | 109 if (LocalFrame* frame = impl->frame()) |
110 frame->script().windowShell(world)->updateDocumentWrapper(wrapper); | 110 frame->script().windowShell(world)->updateDocumentWrapper(wrapper); |
111 } | 111 } |
112 return wrapper; | 112 return wrapper; |
113 } | 113 } |
114 | 114 |
115 v8::Handle<v8::Object> V8TestInterfaceDocument::createWrapper(PassRefPtr<TestInt
erfaceDocument> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isola
te) | 115 v8::Handle<v8::Object> V8TestInterfaceDocument::createWrapper(PassRefPtr<TestInt
erfaceDocument> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isola
te) |
116 { | 116 { |
117 ASSERT(impl); | 117 ASSERT(impl); |
118 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceDocument>(impl.get(), i
solate)); | 118 ASSERT(!DOMDataStore::containsWrapper<V8TestInterfaceDocument>(impl.get(), i
solate)); |
(...skipping 26 matching lines...) Expand all Loading... |
145 fromInternalPointer(object)->deref(); | 145 fromInternalPointer(object)->deref(); |
146 } | 146 } |
147 | 147 |
148 template<> | 148 template<> |
149 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) | 149 v8::Handle<v8::Value> toV8NoInline(TestInterfaceDocument* impl, v8::Handle<v8::O
bject> creationContext, v8::Isolate* isolate) |
150 { | 150 { |
151 return toV8(impl, creationContext, isolate); | 151 return toV8(impl, creationContext, isolate); |
152 } | 152 } |
153 | 153 |
154 } // namespace WebCore | 154 } // namespace WebCore |
OLD | NEW |