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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 = info.Holder(); | 237 v8::Handle<v8::Object> wrapper = info.Holder(); |
238 impl->associateWithWrapper(&V8TestInterface2::wrapperTypeInfo, wrapper, info
.GetIsolate()); | 238 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterface2::wrapperType
Info, wrapper); |
239 v8SetReturnValue(info, wrapper); | 239 v8SetReturnValue(info, wrapper); |
240 } | 240 } |
241 | 241 |
242 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) |
243 { | 243 { |
244 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 244 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
245 ExceptionState exceptionState(ExceptionState::IndexedGetterContext, "TestInt
erface2", info.Holder(), info.GetIsolate()); | 245 ExceptionState exceptionState(ExceptionState::IndexedGetterContext, "TestInt
erface2", info.Holder(), info.GetIsolate()); |
246 RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState); | 246 RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState); |
247 if (exceptionState.throwIfNeeded()) | 247 if (exceptionState.throwIfNeeded()) |
248 return; | 248 return; |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 scriptWrappable->toImpl<TestInterface2>()->deref(); | 510 scriptWrappable->toImpl<TestInterface2>()->deref(); |
511 } | 511 } |
512 | 512 |
513 template<> | 513 template<> |
514 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) |
515 { | 515 { |
516 return toV8(impl, creationContext, isolate); | 516 return toV8(impl, creationContext, isolate); |
517 } | 517 } |
518 | 518 |
519 } // namespace blink | 519 } // namespace blink |
OLD | NEW |