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

Side by Side Diff: Source/bindings/tests/idls/TestObject.idl

Issue 368313005: IDL: Add support for [TreatNullAs=EmptyString] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix debug compilation 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
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ; 233 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ;
234 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute; 234 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute;
235 235
236 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute; 236 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute;
237 [Replaceable, PutForwards=href] readonly attribute TestNode locationReplacea ble; 237 [Replaceable, PutForwards=href] readonly attribute TestNode locationReplacea ble;
238 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute; 238 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute;
239 [PerContextEnabled=FeatureName, RuntimeEnabled=FeatureName] attribute long p erContextEnabledRuntimeEnabledLongAttribute; 239 [PerContextEnabled=FeatureName, RuntimeEnabled=FeatureName] attribute long p erContextEnabledRuntimeEnabledLongAttribute;
240 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition alRuntimeEnabledLongAttribute; 240 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition alRuntimeEnabledLongAttribute;
241 [SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString setterCallWith ActiveWindowAndFirstWindowStringAttribute; 241 [SetterCallWith=ActiveWindow&FirstWindow] attribute DOMString setterCallWith ActiveWindowAndFirstWindowStringAttribute;
242 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio nContextStringAttribute; 242 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio nContextStringAttribute;
243 [TreatNullAs=EmptyString] attribute DOMString treatNullAsEmptyStringStringAt tribute;
243 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ibute; 244 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ibute;
244 [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString AsNullStringAttribute; 245 [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString AsNullStringAttribute;
245 [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS tringAsUndefinedStringAttribute; 246 [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS tringAsUndefinedStringAttribute;
246 [TreatReturnedNullStringAs=Undefined, CachedAttribute=isStringDirty] attribu te DOMString cachedTreatReturnedNullStringAsUndefinedStringAttribute; 247 [TreatReturnedNullStringAs=Undefined, CachedAttribute=isStringDirty] attribu te DOMString cachedTreatReturnedNullStringAsUndefinedStringAttribute;
247 [TreatReturnedNullStringAs=Null] attribute ByteString treatReturnedNullStrin gAsNullByteStringAttribute; 248 [TreatReturnedNullStringAs=Null] attribute ByteString treatReturnedNullStrin gAsNullByteStringAttribute;
248 [TreatReturnedNullStringAs=Undefined] attribute ByteString treatReturnedNull StringAsUndefinedByteStringAttribute; 249 [TreatReturnedNullStringAs=Undefined] attribute ByteString treatReturnedNull StringAsUndefinedByteStringAttribute;
249 [TreatReturnedNullStringAs=Null] attribute ScalarValueString treatReturnedNu llStringAsNullScalarValueStringAttribute; 250 [TreatReturnedNullStringAs=Null] attribute ScalarValueString treatReturnedNu llStringAsNullScalarValueStringAttribute;
250 [TreatReturnedNullStringAs=Undefined] attribute ScalarValueString treatRetur nedNullStringAsUndefinedScalarValueStringAttribute; 251 [TreatReturnedNullStringAs=Undefined] attribute ScalarValueString treatRetur nedNullStringAsUndefinedScalarValueStringAttribute;
251 [TypeChecking=Interface] attribute float typeCheckingInterfaceFloatAttribute ; // nop for non-interface types 252 [TypeChecking=Interface] attribute float typeCheckingInterfaceFloatAttribute ; // nop for non-interface types
252 [TypeChecking=Interface] attribute TestInterface typeCheckingInterfaceTestIn terfaceAttribute; 253 [TypeChecking=Interface] attribute TestInterface typeCheckingInterfaceTestIn terfaceAttribute;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 // [Clamp] 442 // [Clamp]
442 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg); 443 void voidMethodClampUnsignedShortArg([Clamp] unsigned short clampUnsignedSho rtArg);
443 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA rg); 444 void voidMethodClampUnsignedLongArg([Clamp] unsigned long clampUnsignedLongA rg);
444 // [Default] 445 // [Default]
445 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg); 446 void voidMethodDefaultUndefinedTestInterfaceEmptyArg([Default=Undefined] opt ional TestInterfaceEmpty defaultUndefinedTestInterfaceEmptyArg);
446 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def aultUndefinedLongArg); 447 void voidMethodDefaultUndefinedLongArg([Default=Undefined] optional long def aultUndefinedLongArg);
447 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr ing defaultUndefinedStringArg); 448 void voidMethodDefaultUndefinedStringArg([Default=Undefined] optional DOMStr ing defaultUndefinedStringArg);
448 // [EnforceRange] 449 // [EnforceRange]
449 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg); 450 void voidMethodEnforceRangeLongArg([EnforceRange] long enforceRangeLongArg);
450 // [TreatNullAs], [TreatUndefinedAs] 451 // [TreatNullAs], [TreatUndefinedAs]
452 void voidMethodTreatNullAsEmptyStringStringArg([TreatNullAs=EmptyString] DOM String treatNullAsEmptyStringStringArg);
451 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt ring treatNullAsNullStringStringArg); 453 void voidMethodTreatNullAsNullStringStringArg([TreatNullAs=NullString] DOMSt ring treatNullAsNullStringStringArg);
452 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin gStringArg); 454 void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg([Tre atNullAs=NullString, TreatUndefinedAs=NullString] DOMString treatNullAsNullStrin gStringArg);
453 455
454 // Extended attributes for methods 456 // Extended attributes for methods
455 [LogActivity, LogAllWorlds] void activityLoggingAccessForAllWorldsMethod(); 457 [LogActivity, LogAllWorlds] void activityLoggingAccessForAllWorldsMethod();
456 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod(); 458 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod();
457 [CallWith=ScriptState] void callWithScriptStateVoidMethod(); 459 [CallWith=ScriptState] void callWithScriptStateVoidMethod();
458 [CallWith=ScriptState] long callWithScriptStateLongMethod(); 460 [CallWith=ScriptState] long callWithScriptStateLongMethod();
459 [CallWith=ScriptState&ExecutionContext] void callWithScriptStateExecutionCon textVoidMethod(); 461 [CallWith=ScriptState&ExecutionContext] void callWithScriptStateExecutionCon textVoidMethod();
460 [CallWith=ScriptState&ScriptArguments] void callWithScriptStateScriptArgumen tsVoidMethod(); 462 [CallWith=ScriptState&ScriptArguments] void callWithScriptStateScriptArgumen tsVoidMethod();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 [ImplementedInPrivateScript] short shortMethodWithShortArgumentImplementedIn PrivateScript(short value); 537 [ImplementedInPrivateScript] short shortMethodWithShortArgumentImplementedIn PrivateScript(short value);
536 [ImplementedInPrivateScript] DOMString stringMethodWithStringArgumentImpleme ntedInPrivateScript(DOMString value); 538 [ImplementedInPrivateScript] DOMString stringMethodWithStringArgumentImpleme ntedInPrivateScript(DOMString value);
537 [ImplementedInPrivateScript] Node nodeMethodWithNodeArgumentImplementedInPri vateScript(Node value); 539 [ImplementedInPrivateScript] Node nodeMethodWithNodeArgumentImplementedInPri vateScript(Node value);
538 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI nPrivateScript(Document document, Node node, short value1, double value2, DOMStr ing string); 540 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI nPrivateScript(Document document, Node node, short value1, double value2, DOMStr ing string);
539 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 541 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
540 [ImplementedInPrivateScript] attribute short shortAttribute; 542 [ImplementedInPrivateScript] attribute short shortAttribute;
541 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 543 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
542 [ImplementedInPrivateScript] attribute Node nodeAttribute; 544 [ImplementedInPrivateScript] attribute Node nodeAttribute;
543 545
544 }; 546 };
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_types.py ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698