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 "V8TestObject.h" | 7 #include "V8TestObject.h" |
8 | 8 |
9 #include "bindings/core/v8/BindingSecurity.h" | 9 #include "bindings/core/v8/BindingSecurity.h" |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 11425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11436 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
nfo) | 11436 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i
nfo) |
11437 { | 11437 { |
11438 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 11438 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
11439 Vector<String> names; | 11439 Vector<String> names; |
11440 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestObjec
t", info.Holder(), info.GetIsolate()); | 11440 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestObjec
t", info.Holder(), info.GetIsolate()); |
11441 impl->namedPropertyEnumerator(names, exceptionState); | 11441 impl->namedPropertyEnumerator(names, exceptionState); |
11442 if (exceptionState.throwIfNeeded()) | 11442 if (exceptionState.throwIfNeeded()) |
11443 return; | 11443 return; |
11444 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size(
)); | 11444 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size(
)); |
11445 for (size_t i = 0; i < names.size(); ++i) { | 11445 for (size_t i = 0; i < names.size(); ++i) { |
11446 if (!v8CallBoolean(v8names->Set(info.GetIsolate()->GetCurrentContext(),
v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIsolate(), names[i])))) | 11446 if (!v8CallBoolean(v8names->CreateDataProperty(info.GetIsolate()->GetCur
rentContext(), i, v8String(info.GetIsolate(), names[i])))) |
11447 return; | 11447 return; |
11448 } | 11448 } |
11449 v8SetReturnValue(info, v8names); | 11449 v8SetReturnValue(info, v8names); |
11450 } | 11450 } |
11451 | 11451 |
11452 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 11452 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
11453 { | 11453 { |
11454 TestObjectV8Internal::namedPropertyEnumerator(info); | 11454 TestObjectV8Internal::namedPropertyEnumerator(info); |
11455 } | 11455 } |
11456 | 11456 |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12554 ScriptState::Scope scope(scriptState); | 12554 ScriptState::Scope scope(scriptState); |
12555 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12555 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12556 if (holder.IsEmpty()) | 12556 if (holder.IsEmpty()) |
12557 return false; | 12557 return false; |
12558 | 12558 |
12559 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12559 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
12560 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 12560 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
12561 } | 12561 } |
12562 | 12562 |
12563 } // namespace blink | 12563 } // namespace blink |
OLD | NEW |