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

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

Issue 2430223006: Bindings: Rebaseline run-bindings-tests results (Closed)
Patch Set: Created 4 years, 2 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 // clang-format off 7 // clang-format off
8 #include "V8TestInterface3.h" 8 #include "V8TestInterface3.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 81 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
82 if (!document) { 82 if (!document) {
83 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocument", "TestInterface3", "parameter 1 is not of ty pe 'Document'.")); 83 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocument", "TestInterface3", "parameter 1 is not of ty pe 'Document'."));
84 84
85 return; 85 return;
86 } 86 }
87 87
88 impl->voidMethodDocument(document); 88 impl->voidMethodDocument(document);
89 } 89 }
90 90
91 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 91 void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
92 { 92 {
93 TestInterface3V8Internal::voidMethodDocumentMethod(info); 93 TestInterface3V8Internal::voidMethodDocumentMethod(info);
94 } 94 }
95 95
96 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 96 static void keysMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
97 { 97 {
98 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "keys"); 98 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "keys");
99 99
100 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); 100 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
101 101
102 ScriptState* scriptState = ScriptState::forReceiverObject(info); 102 ScriptState* scriptState = ScriptState::forReceiverObject(info);
103 103
104 Iterator* result = impl->iterableKeys(scriptState, exceptionState); 104 Iterator* result = impl->iterableKeys(scriptState, exceptionState);
105 if (exceptionState.hadException()) { 105 if (exceptionState.hadException()) {
106 return; 106 return;
107 } 107 }
108 v8SetReturnValue(info, result); 108 v8SetReturnValue(info, result);
109 } 109 }
110 110
111 static void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 111 void keysMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
112 { 112 {
113 TestInterface3V8Internal::keysMethod(info); 113 TestInterface3V8Internal::keysMethod(info);
114 } 114 }
115 115
116 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 116 static void valuesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
117 { 117 {
118 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "values"); 118 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "values");
119 119
120 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); 120 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
121 121
122 ScriptState* scriptState = ScriptState::forReceiverObject(info); 122 ScriptState* scriptState = ScriptState::forReceiverObject(info);
123 123
124 Iterator* result = impl->valuesForBinding(scriptState, exceptionState); 124 Iterator* result = impl->valuesForBinding(scriptState, exceptionState);
125 if (exceptionState.hadException()) { 125 if (exceptionState.hadException()) {
126 return; 126 return;
127 } 127 }
128 v8SetReturnValue(info, result); 128 v8SetReturnValue(info, result);
129 } 129 }
130 130
131 static void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info ) 131 void valuesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
132 { 132 {
133 TestInterface3V8Internal::valuesMethod(info); 133 TestInterface3V8Internal::valuesMethod(info);
134 } 134 }
135 135
136 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 136 static void entriesMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
137 { 137 {
138 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "entries"); 138 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "entries");
139 139
140 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); 140 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
141 141
142 ScriptState* scriptState = ScriptState::forReceiverObject(info); 142 ScriptState* scriptState = ScriptState::forReceiverObject(info);
143 143
144 Iterator* result = impl->entriesForBinding(scriptState, exceptionState); 144 Iterator* result = impl->entriesForBinding(scriptState, exceptionState);
145 if (exceptionState.hadException()) { 145 if (exceptionState.hadException()) {
146 return; 146 return;
147 } 147 }
148 v8SetReturnValue(info, result); 148 v8SetReturnValue(info, result);
149 } 149 }
150 150
151 static void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 151 void entriesMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
152 { 152 {
153 TestInterface3V8Internal::entriesMethod(info); 153 TestInterface3V8Internal::entriesMethod(info);
154 } 154 }
155 155
156 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 156 static void forEachMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
157 { 157 {
158 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "forEach"); 158 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "forEach");
159 159
160 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); 160 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
161 161
(...skipping 14 matching lines...) Expand all
176 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]); 176 callback = ScriptValue(ScriptState::current(info.GetIsolate()), info[0]);
177 177
178 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]); 178 thisArg = ScriptValue(ScriptState::current(info.GetIsolate()), info[1]);
179 179
180 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()) , callback, thisArg, exceptionState); 180 impl->forEachForBinding(scriptState, ScriptValue(scriptState, info.Holder()) , callback, thisArg, exceptionState);
181 if (exceptionState.hadException()) { 181 if (exceptionState.hadException()) {
182 return; 182 return;
183 } 183 }
184 } 184 }
185 185
186 static void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& inf o) 186 void forEachMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
187 { 187 {
188 TestInterface3V8Internal::forEachMethod(info); 188 TestInterface3V8Internal::forEachMethod(info);
189 } 189 }
190 190
191 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 191 static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
192 { 192 {
193 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); 193 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
194 194
195 v8SetReturnValueString(info, impl->readonlyStringifierAttribute(), info.GetI solate()); 195 v8SetReturnValueString(info, impl->readonlyStringifierAttribute(), info.GetI solate());
196 } 196 }
197 197
198 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 198 void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
199 { 199 {
200 TestInterface3V8Internal::toStringMethod(info); 200 TestInterface3V8Internal::toStringMethod(info);
201 } 201 }
202 202
203 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 203 static void iteratorMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
204 { 204 {
205 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "iterator"); 205 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo ntext, "TestInterface3", "iterator");
206 206
207 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder()); 207 TestInterface3* impl = V8TestInterface3::toImpl(info.Holder());
208 208
209 ScriptState* scriptState = ScriptState::forReceiverObject(info); 209 ScriptState* scriptState = ScriptState::forReceiverObject(info);
210 210
211 Iterator* result = impl->iterator(scriptState, exceptionState); 211 Iterator* result = impl->iterator(scriptState, exceptionState);
212 if (exceptionState.hadException()) { 212 if (exceptionState.hadException()) {
213 return; 213 return;
214 } 214 }
215 v8SetReturnValue(info, result); 215 v8SetReturnValue(info, result);
216 } 216 }
217 217
218 static void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 218 void iteratorMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
219 { 219 {
220 TestInterface3V8Internal::iteratorMethod(info); 220 TestInterface3V8Internal::iteratorMethod(info);
221 } 221 }
222 222
223 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Value>& info) 223 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Value>& info)
224 { 224 {
225 if (!name->IsString()) 225 if (!name->IsString())
226 return; 226 return;
227 const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>()) ; 227 const AtomicString& propertyName = toCoreAtomicString(name.As<v8::String>()) ;
228 228
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 { 351 {
352 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 352 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
353 } 353 }
354 354
355 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8:: Local<v8::Value> value) 355 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8:: Local<v8::Value> value)
356 { 356 {
357 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr; 357 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr;
358 } 358 }
359 359
360 } // namespace blink 360 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698