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

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

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed LICENSE and windows build Created 6 years, 5 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 | Annotate | Revision Log
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"
11 #include "bindings/core/v8/DictionaryHelper.h"
11 #include "bindings/core/v8/ExceptionState.h" 12 #include "bindings/core/v8/ExceptionState.h"
12 #include "bindings/core/v8/ScriptValue.h" 13 #include "bindings/core/v8/ScriptValue.h"
13 #include "bindings/core/v8/SerializedScriptValue.h" 14 #include "bindings/core/v8/SerializedScriptValue.h"
14 #include "bindings/core/v8/V8DOMConfiguration.h" 15 #include "bindings/core/v8/V8DOMConfiguration.h"
15 #include "bindings/core/v8/V8HiddenValue.h" 16 #include "bindings/core/v8/V8HiddenValue.h"
16 #include "bindings/core/v8/V8ObjectConstructor.h" 17 #include "bindings/core/v8/V8ObjectConstructor.h"
17 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" 18 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
18 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" 19 #include "bindings/tests/v8/V8TestInterfaceEmpty.h"
19 #include "core/dom/ContextFeatures.h" 20 #include "core/dom/ContextFeatures.h"
20 #include "core/dom/Document.h" 21 #include "core/dom/Document.h"
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 {"implementedAsInitializedByEventConstructorReadonlyStringAttribute", TestIn terfaceEventConstructorV8Internal::implementedAsInitializedByEventConstructorRea donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst ance */}, 293 {"implementedAsInitializedByEventConstructorReadonlyStringAttribute", TestIn terfaceEventConstructorV8Internal::implementedAsInitializedByEventConstructorRea donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst ance */},
293 {"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribut e", TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB yEventConstructorReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */}, 294 {"deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribut e", TestInterfaceEventConstructorV8Internal::deprecatedImplementedAsInitializedB yEventConstructorReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */},
294 }; 295 };
295 296
296 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit& eventInit, const Dictionary& options, ExceptionState& exceptionState, const v8:: FunctionCallbackInfo<v8::Value>& info, const String& forEventName) 297 bool initializeTestInterfaceEventConstructor(TestInterfaceEventConstructorInit& eventInit, const Dictionary& options, ExceptionState& exceptionState, const v8:: FunctionCallbackInfo<v8::Value>& info, const String& forEventName)
297 { 298 {
298 Dictionary::ConversionContext conversionContext(forEventName.isEmpty() ? Str ing("TestInterfaceEventConstructor") : forEventName, "", exceptionState); 299 Dictionary::ConversionContext conversionContext(forEventName.isEmpty() ? Str ing("TestInterfaceEventConstructor") : forEventName, "", exceptionState);
299 if (!initializeEvent(eventInit, options, exceptionState, info, forEventName. isEmpty() ? String("TestInterfaceEventConstructor") : forEventName)) 300 if (!initializeEvent(eventInit, options, exceptionState, info, forEventName. isEmpty() ? String("TestInterfaceEventConstructor") : forEventName))
300 return false; 301 return false;
301 302
302 if (!options.convert(conversionContext.setConversionType("DOMString", false) , "initializedByEventConstructorReadonlyStringAttribute", eventInit.initializedB yEventConstructorReadonlyStringAttribute)) 303 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "DOMString", false), "initializedByEventConstructorReadonlyStringAttribute", eve ntInit.initializedByEventConstructorReadonlyStringAttribute))
303 return false; 304 return false;
304 if (!options.convert(conversionContext.setConversionType("boolean", false), "initializedByEventConstructorReadonlyBooleanAttribute", eventInit.initializedBy EventConstructorReadonlyBooleanAttribute)) 305 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "boolean", false), "initializedByEventConstructorReadonlyBooleanAttribute", even tInit.initializedByEventConstructorReadonlyBooleanAttribute))
305 return false; 306 return false;
306 if (!options.convert(conversionContext.setConversionType("long", false), "in itializedByEventConstructorReadonlyLongAttribute", eventInit.initializedByEventC onstructorReadonlyLongAttribute)) 307 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "long", false), "initializedByEventConstructorReadonlyLongAttribute", eventInit. initializedByEventConstructorReadonlyLongAttribute))
307 return false; 308 return false;
308 if (!options.convert(conversionContext.setConversionType("Uint8Array", false ), "initializedByEventConstructorReadonlyUint8ArrayAttribute", eventInit.initial izedByEventConstructorReadonlyUint8ArrayAttribute)) 309 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "Uint8Array", false), "initializedByEventConstructorReadonlyUint8ArrayAttribute" , eventInit.initializedByEventConstructorReadonlyUint8ArrayAttribute))
309 return false; 310 return false;
310 if (!options.convert(conversionContext.setConversionType("TestInterfaceEmpty ", false), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute", e ventInit.initializedByEventConstructorReadonlyTestInterfaceEmptyAttribute)) 311 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "TestInterfaceEmpty", false), "initializedByEventConstructorReadonlyTestInterfac eEmptyAttribute", eventInit.initializedByEventConstructorReadonlyTestInterfaceEm ptyAttribute))
311 return false; 312 return false;
312 if (!options.convert(conversionContext.setConversionType("TestInterfaceEmpty []", false), "initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttrib ute", eventInit.initializedByEventConstructorReadonlyTestInterfaceEmptyArrayAttr ibute)) 313 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "TestInterfaceEmpty[]", false), "initializedByEventConstructorReadonlyTestInterf aceEmptyArrayAttribute", eventInit.initializedByEventConstructorReadonlyTestInte rfaceEmptyArrayAttribute))
313 return false; 314 return false;
314 if (!options.convert(conversionContext.setConversionType("TestInterfaceEmpty ", true), "initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttrib ute", eventInit.initializedByEventConstructorReadonlyNullableTestInterfaceEmptyA ttribute)) 315 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "TestInterfaceEmpty", true), "initializedByEventConstructorReadonlyNullableTestI nterfaceEmptyAttribute", eventInit.initializedByEventConstructorReadonlyNullable TestInterfaceEmptyAttribute))
315 return false; 316 return false;
316 if (options.convert(conversionContext.setConversionType("DOMString", false), "deprecatedInitializedByEventConstructorReadonlyStringAttribute", eventInit.dep recatedInitializedByEventConstructorReadonlyStringAttribute)) { 317 if (DictionaryHelper::convert(options, conversionContext.setConversionType(" DOMString", false), "deprecatedInitializedByEventConstructorReadonlyStringAttrib ute", eventInit.deprecatedInitializedByEventConstructorReadonlyStringAttribute)) {
317 if (options.hasProperty("deprecatedInitializedByEventConstructorReadonly StringAttribute")) 318 if (options.hasProperty("deprecatedInitializedByEventConstructorReadonly StringAttribute"))
318 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); 319 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::initializedByEventConstructorReadonlyStringAttribute);
319 } else { 320 } else {
320 return false; 321 return false;
321 } 322 }
322 if (!options.convert(conversionContext.setConversionType("DOMString", false) , "implementedAsInitializedByEventConstructorReadonlyStringAttribute", eventInit .implementedAsName)) 323 if (!DictionaryHelper::convert(options, conversionContext.setConversionType( "DOMString", false), "implementedAsInitializedByEventConstructorReadonlyStringAt tribute", eventInit.implementedAsName))
323 return false; 324 return false;
324 if (options.convert(conversionContext.setConversionType("DOMString", false), "deprecatedImplementedAsInitializedByEventConstructorReadonlyStringAttribute", eventInit.deprecatedImplementedAsName)) { 325 if (DictionaryHelper::convert(options, conversionContext.setConversionType(" DOMString", false), "deprecatedImplementedAsInitializedByEventConstructorReadonl yStringAttribute", eventInit.deprecatedImplementedAsName)) {
325 if (options.hasProperty("deprecatedImplementedAsInitializedByEventConstr uctorReadonlyStringAttribute")) 326 if (options.hasProperty("deprecatedImplementedAsInitializedByEventConstr uctorReadonlyStringAttribute"))
326 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::initializedByEventConstructorReadonlyStringAttribute); 327 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate ()), UseCounter::initializedByEventConstructorReadonlyStringAttribute);
327 } else { 328 } else {
328 return false; 329 return false;
329 } 330 }
330 return true; 331 return true;
331 } 332 }
332 333
333 void V8TestInterfaceEventConstructor::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info) 334 void V8TestInterfaceEventConstructor::constructorCallback(const v8::FunctionCall backInfo<v8::Value>& info)
334 { 335 {
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 #endif // !ENABLE(OILPAN) 420 #endif // !ENABLE(OILPAN)
420 } 421 }
421 422
422 template<> 423 template<>
423 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 424 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
424 { 425 {
425 return toV8(impl, creationContext, isolate); 426 return toV8(impl, creationContext, isolate);
426 } 427 }
427 428
428 } // namespace WebCore 429 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698