| 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 "V8TestInterface5.h" | 7 #include "V8TestInterface5.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 740 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 751 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
     nfo) | 751 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
     nfo) | 
| 752 { | 752 { | 
| 753     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 753     TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
     ; | 
| 754     Vector<String> names; | 754     Vector<String> names; | 
| 755     ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter
     face5", info.Holder(), info.GetIsolate()); | 755     ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter
     face5", info.Holder(), info.GetIsolate()); | 
| 756     impl->namedPropertyEnumerator(names, exceptionState); | 756     impl->namedPropertyEnumerator(names, exceptionState); | 
| 757     if (exceptionState.throwIfNeeded()) | 757     if (exceptionState.throwIfNeeded()) | 
| 758         return; | 758         return; | 
| 759     v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size(
     )); | 759     v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size(
     )); | 
| 760     for (size_t i = 0; i < names.size(); ++i) { | 760     for (size_t i = 0; i < names.size(); ++i) { | 
| 761         if (!v8CallBoolean(v8names->Set(info.GetIsolate()->GetCurrentContext(), 
     v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIsolate(), names[i])))) | 761         if (!v8CallBoolean(v8names->CreateDataProperty(info.GetIsolate()->GetCur
     rentContext(), i, v8String(info.GetIsolate(), names[i])))) | 
| 762             return; | 762             return; | 
| 763     } | 763     } | 
| 764     v8SetReturnValue(info, v8names); | 764     v8SetReturnValue(info, v8names); | 
| 765 } | 765 } | 
| 766 | 766 | 
| 767 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
     rray>& info) | 767 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
     rray>& info) | 
| 768 { | 768 { | 
| 769     TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); | 769     TestInterface5ImplementationV8Internal::namedPropertyEnumerator(info); | 
| 770 } | 770 } | 
| 771 | 771 | 
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 915         V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
     ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
     hodMethodConfiguration); | 915         V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(
     ), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMet
     hodMethodConfiguration); | 
| 916     } | 916     } | 
| 917 } | 917 } | 
| 918 | 918 | 
| 919 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
     bject> wrapper) | 919 ActiveScriptWrappable* V8TestInterface5::toActiveScriptWrappable(v8::Local<v8::O
     bject> wrapper) | 
| 920 { | 920 { | 
| 921     return toImpl(wrapper); | 921     return toImpl(wrapper); | 
| 922 } | 922 } | 
| 923 | 923 | 
| 924 } // namespace blink | 924 } // namespace blink | 
| OLD | NEW | 
|---|