| 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 #ifndef V8TestInterfaceDocument_h | 7 #ifndef V8TestInterfaceDocument_h |
| 8 #define V8TestInterfaceDocument_h | 8 #define V8TestInterfaceDocument_h |
| 9 | 9 |
| 10 #include "V8Document.h" | 10 #include "V8Document.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceDocument>(callbac
kInfo.GetReturnValue(), impl)) | 69 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceDocument>(callbac
kInfo.GetReturnValue(), impl)) |
| 70 return; | 70 return; |
| 71 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); | 71 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI
nfo.GetIsolate()); |
| 72 v8SetReturnValue(callbackInfo, wrapper); | 72 v8SetReturnValue(callbackInfo, wrapper); |
| 73 } | 73 } |
| 74 | 74 |
| 75 template<typename CallbackInfo> | 75 template<typename CallbackInfo> |
| 76 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceDocument* impl) | 76 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestI
nterfaceDocument* impl) |
| 77 { | 77 { |
| 78 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate())->isMainWorld()); | 78 ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld()); |
| 79 if (UNLIKELY(!impl)) { | 79 if (UNLIKELY(!impl)) { |
| 80 v8SetReturnValueNull(callbackInfo); | 80 v8SetReturnValueNull(callbackInfo); |
| 81 return; | 81 return; |
| 82 } | 82 } |
| 83 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceDocum
ent>(callbackInfo.GetReturnValue(), impl)) | 83 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInterfaceDocum
ent>(callbackInfo.GetReturnValue(), impl)) |
| 84 return; | 84 return; |
| 85 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); | 85 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn
fo.GetIsolate()); |
| 86 v8SetReturnValue(callbackInfo, wrapper); | 86 v8SetReturnValue(callbackInfo, wrapper); |
| 87 } | 87 } |
| 88 | 88 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 117 } | 117 } |
| 118 | 118 |
| 119 template<class CallbackInfo, class Wrappable> | 119 template<class CallbackInfo, class Wrappable> |
| 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceDocument> impl, Wrappable* wrappable) | 120 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te
stInterfaceDocument> impl, Wrappable* wrappable) |
| 121 { | 121 { |
| 122 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 122 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 123 } | 123 } |
| 124 | 124 |
| 125 } | 125 } |
| 126 #endif // V8TestInterfaceDocument_h | 126 #endif // V8TestInterfaceDocument_h |
| OLD | NEW |