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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexedGlobal.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 "V8TestIntegerIndexedGlobal.h" 7 #include "V8TestIntegerIndexedGlobal.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 V8TestIntegerIndexedGlobal::indexedPropertySetterCustom(index, v8Value, info ); 97 V8TestIntegerIndexedGlobal::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 V8TestIntegerIndexedGlobal::indexedPropertyDeleterCustom(index, info); 102 V8TestIntegerIndexedGlobal::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 V8TestIntegerIndexedGlobal::namedPropertyGetterCustom(name, info); 109 V8TestIntegerIndexedGlobal::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 V8TestIntegerIndexedGlobal::namedPropertySetterCustom(name, v8Value, info); 116 V8TestIntegerIndexedGlobal::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 V8TestIntegerIndexedGlobal::namedPropertyQueryCustom(name, info); 123 V8TestIntegerIndexedGlobal::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 V8TestIntegerIndexedGlobal::namedPropertyDeleterCustom(name, info); 130 V8TestIntegerIndexedGlobal::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 V8TestIntegerIndexedGlobal::namedPropertyEnumeratorCustom(info); 135 V8TestIntegerIndexedGlobal::namedPropertyEnumeratorCustom(info);
128 } 136 }
129 137
130 } // namespace TestIntegerIndexedGlobalV8Internal 138 } // namespace TestIntegerIndexedGlobalV8Internal
131 139
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 { 195 {
188 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 196 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
189 } 197 }
190 198
191 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value) 199 TestIntegerIndexedGlobal* V8TestIntegerIndexedGlobal::toImplWithTypeCheck(v8::Is olate* isolate, v8::Local<v8::Value> value)
192 { 200 {
193 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0; 201 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
194 } 202 }
195 203
196 } // namespace blink 204 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698