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

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

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 10 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 #include "V8TestInterfaceEventConstructor.h" 8 #include "V8TestInterfaceEventConstructor.h"
9 9
10 #include "bindings/core/v8/Dictionary.h" 10 #include "bindings/core/v8/Dictionary.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 231 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
232 { 232 {
233 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceEventConstructor", info.Holder(), info.GetIsolate()); 233 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceEventConstructor", info.Holder(), info.GetIsolate());
234 if (info.Length() < 1) { 234 if (info.Length() < 1) {
235 exceptionState.throwTypeError("An event name must be provided."); 235 exceptionState.throwTypeError("An event name must be provided.");
236 exceptionState.throwIfNeeded(); 236 exceptionState.throwIfNeeded();
237 return; 237 return;
238 } 238 }
239 239
240 TOSTRING_VOID(V8StringResource<>, type, info[0]); 240 V8StringResource<> type(info[0]);
241 if (!type.prepare())
242 return;
241 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute; 243 v8::Local<v8::Value> initializedByEventConstructorReadonlyAnyAttribute;
242 TestInterfaceEventConstructorInit eventInit; 244 TestInterfaceEventConstructorInit eventInit;
243 if (info.Length() >= 2) { 245 if (info.Length() >= 2) {
244 Dictionary options(info[1], info.GetIsolate(), exceptionState); 246 Dictionary options(info[1], info.GetIsolate(), exceptionState);
245 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti onState, info)) { 247 if (!initializeTestInterfaceEventConstructor(eventInit, options, excepti onState, info)) {
246 exceptionState.throwIfNeeded(); 248 exceptionState.throwIfNeeded();
247 return; 249 return;
248 } 250 }
249 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial izedByEventConstructorReadonlyAnyAttribute); 251 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial izedByEventConstructorReadonlyAnyAttribute);
250 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) 252 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty())
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 383 }
382 384
383 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab le) 385 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappable* scriptWrappab le)
384 { 386 {
385 #if !ENABLE(OILPAN) 387 #if !ENABLE(OILPAN)
386 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref(); 388 scriptWrappable->toImpl<TestInterfaceEventConstructor>()->deref();
387 #endif 389 #endif
388 } 390 }
389 391
390 } // namespace blink 392 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698