Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 1938943002: Use v8::Object::CreateDataProperty() for object construction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8TestInterface.h" 7 #include "V8TestInterface.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/PrivateScriptRunner.h" 10 #include "bindings/core/v8/PrivateScriptRunner.h"
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo) 1947 static void namedPropertyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& i nfo)
1948 { 1948 {
1949 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 1949 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
1950 Vector<String> names; 1950 Vector<String> names;
1951 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter face", info.Holder(), info.GetIsolate()); 1951 ExceptionState exceptionState(ExceptionState::EnumerationContext, "TestInter face", info.Holder(), info.GetIsolate());
1952 impl->namedPropertyEnumerator(names, exceptionState); 1952 impl->namedPropertyEnumerator(names, exceptionState);
1953 if (exceptionState.throwIfNeeded()) 1953 if (exceptionState.throwIfNeeded())
1954 return; 1954 return;
1955 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size( )); 1955 v8::Local<v8::Array> v8names = v8::Array::New(info.GetIsolate(), names.size( ));
1956 for (size_t i = 0; i < names.size(); ++i) { 1956 for (size_t i = 0; i < names.size(); ++i) {
1957 if (!v8CallBoolean(v8names->Set(info.GetIsolate()->GetCurrentContext(), v8::Integer::New(info.GetIsolate(), i), v8String(info.GetIsolate(), names[i])))) 1957 if (!v8CallBoolean(v8names->CreateDataProperty(info.GetIsolate()->GetCur rentContext(), i, v8String(info.GetIsolate(), names[i]))))
1958 return; 1958 return;
1959 } 1959 }
1960 v8SetReturnValue(info, v8names); 1960 v8SetReturnValue(info, v8names);
1961 } 1961 }
1962 1962
1963 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 1963 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
1964 { 1964 {
1965 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info); 1965 TestInterfaceImplementationV8Internal::namedPropertyEnumerator(info);
1966 } 1966 }
1967 1967
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
2361 { 2361 {
2362 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2362 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2363 } 2363 }
2364 2364
2365 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2365 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2366 { 2366 {
2367 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2367 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2368 } 2368 }
2369 2369
2370 } // namespace blink 2370 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698