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

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

Issue 1993593003: binding: Check the type of property names in FooCallback instead of Foo. (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 "V8TestIntegerIndexed.h" 7 #include "V8TestIntegerIndexed.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/V8DOMConfiguration.h" 10 #include "bindings/core/v8/V8DOMConfiguration.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 V8TestIntegerIndexed::indexedPropertySetterCustom(index, v8Value, info); 97 V8TestIntegerIndexed::indexedPropertySetterCustom(index, v8Value, info);
98 } 98 }
99 99
100 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal lbackInfo<v8::Boolean>& info) 100 static void indexedPropertyDeleterCallback(uint32_t index, const v8::PropertyCal lbackInfo<v8::Boolean>& info)
101 { 101 {
102 V8TestIntegerIndexed::indexedPropertyDeleterCustom(index, info); 102 V8TestIntegerIndexed::indexedPropertyDeleterCustom(index, info);
103 } 103 }
104 104
105 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop ertyCallbackInfo<v8::Value>& info) 105 static void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::Prop ertyCallbackInfo<v8::Value>& info)
106 { 106 {
107 if (!name->IsString())
108 return;
107 V8TestIntegerIndexed::namedPropertyGetterCustom(name, info); 109 V8TestIntegerIndexed::namedPropertyGetterCustom(name, info);
108 } 110 }
109 111
110 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) 112 static void namedPropertySetterCallback(v8::Local<v8::Name> name, v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info)
111 { 113 {
114 if (!name->IsString())
115 return;
112 V8TestIntegerIndexed::namedPropertySetterCustom(name, v8Value, info); 116 V8TestIntegerIndexed::namedPropertySetterCustom(name, v8Value, info);
113 } 117 }
114 118
115 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info) 119 static void namedPropertyQueryCallback(v8::Local<v8::Name> name, const v8::Prope rtyCallbackInfo<v8::Integer>& info)
116 { 120 {
121 if (!name->IsString())
122 return;
117 V8TestIntegerIndexed::namedPropertyQueryCustom(name, info); 123 V8TestIntegerIndexed::namedPropertyQueryCustom(name, info);
118 } 124 }
119 125
120 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro pertyCallbackInfo<v8::Boolean>& info) 126 static void namedPropertyDeleterCallback(v8::Local<v8::Name> name, const v8::Pro pertyCallbackInfo<v8::Boolean>& info)
121 { 127 {
128 if (!name->IsString())
129 return;
122 V8TestIntegerIndexed::namedPropertyDeleterCustom(name, info); 130 V8TestIntegerIndexed::namedPropertyDeleterCustom(name, info);
123 } 131 }
124 132
125 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info) 133 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A rray>& info)
126 { 134 {
127 V8TestIntegerIndexed::namedPropertyEnumeratorCustom(info); 135 V8TestIntegerIndexed::namedPropertyEnumeratorCustom(info);
128 } 136 }
129 137
130 } // namespace TestIntegerIndexedV8Internal 138 } // namespace TestIntegerIndexedV8Internal
131 139
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 { 184 {
177 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 185 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
178 } 186 }
179 187
180 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola te, v8::Local<v8::Value> value) 188 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola te, v8::Local<v8::Value> value)
181 { 189 {
182 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 190 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
183 } 191 }
184 192
185 } // namespace blink 193 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698