| 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 "V8TestInterface2.h" | 7 #include "V8TestInterface2.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
nfo) | 534 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
nfo) |
| 535 { | 535 { |
| 536 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 536 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
| 537 Vector<String> names; | 537 Vector<String> names; |
| 538 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter
face2", info.Holder(), info.GetIsolate()); | 538 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter
face2", info.Holder(), info.GetIsolate()); |
| 539 impl->namedPropertyEnumerator(names, exceptionState); | 539 impl->namedPropertyEnumerator(names, exceptionState); |
| 540 if (exceptionState.throwIfNeeded()) | 540 if (exceptionState.throwIfNeeded()) |
| 541 return; | 541 return; |
| 542 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size(
)); | 542 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size(
)); |
| 543 for (size_t i = 0; i < names.size(); ++i) { | 543 for (size_t i = 0; i < names.size(); ++i) { |
| 544 if (!v8CallBoolean(v8names->Set(info.GetIsolate()->GetCurrentContext(),
v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIsolate(), names[i])))) | 544 if (!v8CallBoolean(v8names->CreateDataProperty(info.GetIsolate()->GetCur
rentContext(), i, v8String(info.GetIsolate(), names[i])))) |
| 545 return; | 545 return; |
| 546 } | 546 } |
| 547 v8SetReturnValue(info, v8names); | 547 v8SetReturnValue(info, v8names); |
| 548 } | 548 } |
| 549 | 549 |
| 550 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 550 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
| 551 { | 551 { |
| 552 TestInterface2V8Internal::namedPropertyEnumerator(info); | 552 TestInterface2V8Internal::namedPropertyEnumerator(info); |
| 553 } | 553 } |
| 554 | 554 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 InstallTemplateFunction V8TestInterface2::installV8TestInterface2TemplateFunctio
n = (InstallTemplateFunction)&V8TestInterface2::installV8TestInterface2Template; | 656 InstallTemplateFunction V8TestInterface2::installV8TestInterface2TemplateFunctio
n = (InstallTemplateFunction)&V8TestInterface2::installV8TestInterface2Template; |
| 657 | 657 |
| 658 void V8TestInterface2::updateWrapperTypeInfo(InstallTemplateFunction installTemp
lateFunction, PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInte
rfaceObjectFunction) | 658 void V8TestInterface2::updateWrapperTypeInfo(InstallTemplateFunction installTemp
lateFunction, PreparePrototypeAndInterfaceObjectFunction preparePrototypeAndInte
rfaceObjectFunction) |
| 659 { | 659 { |
| 660 V8TestInterface2::installV8TestInterface2TemplateFunction = installTemplateF
unction; | 660 V8TestInterface2::installV8TestInterface2TemplateFunction = installTemplateF
unction; |
| 661 if (preparePrototypeAndInterfaceObjectFunction) | 661 if (preparePrototypeAndInterfaceObjectFunction) |
| 662 V8TestInterface2::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunc
tion = preparePrototypeAndInterfaceObjectFunction; | 662 V8TestInterface2::wrapperTypeInfo.preparePrototypeAndInterfaceObjectFunc
tion = preparePrototypeAndInterfaceObjectFunction; |
| 663 } | 663 } |
| 664 | 664 |
| 665 } // namespace blink | 665 } // namespace blink |
| OLD | NEW |