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

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

Issue 1153613007: bindings: Use CreateDataProperty() instead of ForceSet() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8 ::FunctionCallbackInfo<v8::Value>&) = 0; 53 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8 ::FunctionCallbackInfo<v8::Value>&) = 0;
54 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F unctionCallbackInfo<v8::Value>&) = 0; 54 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F unctionCallbackInfo<v8::Value>&) = 0;
55 static void (*staticPromiseMethodPartialOverloadMethodForPartialInterface)(const v8::FunctionCallbackInfo<v8::Value>&) = 0; 55 static void (*staticPromiseMethodPartialOverloadMethodForPartialInterface)(const v8::FunctionCallbackInfo<v8::Value>&) = 0;
56 static void (*partial2VoidMethodMethodForPartialInterface)(const v8::FunctionCal lbackInfo<v8::Value>&) = 0; 56 static void (*partial2VoidMethodMethodForPartialInterface)(const v8::FunctionCal lbackInfo<v8::Value>&) = 0;
57 static void (*partial2StaticVoidMethodMethodForPartialInterface)(const v8::Funct ionCallbackInfo<v8::Value>&) = 0; 57 static void (*partial2StaticVoidMethodMethodForPartialInterface)(const v8::Funct ionCallbackInfo<v8::Value>&) = 0;
58 58
59 template<class CallbackInfo> 59 template<class CallbackInfo>
60 static void TestInterfaceImplementationForceSetAttributeOnThis(v8::Local<v8::Nam e> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) 60 static void TestInterfaceImplementationForceSetAttributeOnThis(v8::Local<v8::Nam e> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info)
61 { 61 {
62 ASSERT(info.This()->IsObject()); 62 ASSERT(info.This()->IsObject());
63 // TODO(bashi): Consider using CreateDataProperty() instead of ForceSet().
63 v8::Local<v8::Object>::Cast(info.This())->ForceSet(info.GetIsolate()->GetCur rentContext(), name, v8Value); 64 v8::Local<v8::Object>::Cast(info.This())->ForceSet(info.GetIsolate()->GetCur rentContext(), name, v8Value);
64 } 65 }
65 66
66 static void TestInterfaceImplementationConstructorAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 67 static void TestInterfaceImplementationConstructorAttributeSetterCallback(v8::Lo cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
67 { 68 {
68 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 69 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
69 do { 70 do {
70 v8::Local<v8::Value> data = info.Data(); 71 v8::Local<v8::Value> data = info.Data();
71 ASSERT(data->IsExternal()); 72 ASSERT(data->IsExternal());
72 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext()); 73 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext());
(...skipping 2499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2572 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2573 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2573 { 2574 {
2574 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2575 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2575 } 2576 }
2576 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2577 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2577 { 2578 {
2578 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2579 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2579 } 2580 }
2580 } // namespace blink 2581 } // namespace blink
2581 #endif // ENABLE(CONDITION) 2582 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698