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 "V8TestInterface2.h" | 8 #include "V8TestInterface2.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 227 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
228 { | 228 { |
229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
230 TestInterface2V8Internal::toStringMethod(info); | 230 TestInterface2V8Internal::toStringMethod(info); |
231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
232 } | 232 } |
233 | 233 |
234 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 234 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
235 { | 235 { |
236 RefPtr<TestInterface2> impl = TestInterface2::create(); | 236 RefPtr<TestInterface2> impl = TestInterface2::create(); |
237 v8::Handle<v8::Object> wrapper = wrapCustom(impl.get(), info.Holder(), info.
GetIsolate()); | 237 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 238 impl->associateWithWrapper(&V8TestInterface2::wrapperTypeInfo, wrapper, info
.GetIsolate()); |
238 v8SetReturnValue(info, wrapper); | 239 v8SetReturnValue(info, wrapper); |
239 } | 240 } |
240 | 241 |
241 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) | 242 static void indexedPropertyGetter(uint32_t index, const v8::PropertyCallbackInfo
<v8::Value>& info) |
242 { | 243 { |
243 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 244 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
244 ExceptionState exceptionState(ExceptionState::IndexedGetterContext, "TestInt
erface2", info.Holder(), info.GetIsolate()); | 245 ExceptionState exceptionState(ExceptionState::IndexedGetterContext, "TestInt
erface2", info.Holder(), info.GetIsolate()); |
245 RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState); | 246 RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState); |
246 if (exceptionState.throwIfNeeded()) | 247 if (exceptionState.throwIfNeeded()) |
247 return; | 248 return; |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 scriptWrappableBase->toImpl<TestInterface2>()->deref(); | 510 scriptWrappableBase->toImpl<TestInterface2>()->deref(); |
510 } | 511 } |
511 | 512 |
512 template<> | 513 template<> |
513 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 514 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
514 { | 515 { |
515 return toV8(impl, creationContext, isolate); | 516 return toV8(impl, creationContext, isolate); |
516 } | 517 } |
517 | 518 |
518 } // namespace blink | 519 } // namespace blink |
OLD | NEW |