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

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

Issue 698423002: IDL union: nullable support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 /* 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 attribute TestInterface? testInterfaceOrNullAttribute; 150 attribute TestInterface? testInterfaceOrNullAttribute;
151 // Enumerations 151 // Enumerations
152 attribute TestEnum testEnumAttribute; 152 attribute TestEnum testEnumAttribute;
153 // Static attributes 153 // Static attributes
154 static attribute DOMString staticStringAttribute; 154 static attribute DOMString staticStringAttribute;
155 static attribute long staticLongAttribute; 155 static attribute long staticLongAttribute;
156 // Exceptional type 156 // Exceptional type
157 attribute EventHandler eventHandlerAttribute; 157 attribute EventHandler eventHandlerAttribute;
158 // Union types 158 // Union types
159 attribute (double or DOMString) doubleOrStringAttribute; 159 attribute (double or DOMString) doubleOrStringAttribute;
160 attribute (double or DOMString)? doubleOrStringOrNullAttribute;
161 attribute (double? or DOMString) doubleOrNullStringAttribute;
160 162
161 // Extended attributes 163 // Extended attributes
162 [LogActivity, LogAllWorlds] attribute long activityLoggingAccessForAllWorlds LongAttribute; 164 [LogActivity, LogAllWorlds] attribute long activityLoggingAccessForAllWorlds LongAttribute;
163 [LogActivity=GetterOnly, LogAllWorlds] attribute long activityLoggingGetterF orAllWorldsLongAttribute; 165 [LogActivity=GetterOnly, LogAllWorlds] attribute long activityLoggingGetterF orAllWorldsLongAttribute;
164 [LogActivity=SetterOnly, LogAllWorlds] attribute long activityLoggingSetterF orAllWorldsLongAttribute; 166 [LogActivity=SetterOnly, LogAllWorlds] attribute long activityLoggingSetterF orAllWorldsLongAttribute;
165 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute; 167 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute;
166 [CachedAttribute=isArrayDirty] attribute DOMString[] cachedArrayAttribute; 168 [CachedAttribute=isArrayDirty] attribute DOMString[] cachedArrayAttribute;
167 [CachedAttribute=isStringDirty] attribute DOMString? cachedStringOrNoneAttri bute; 169 [CachedAttribute=isStringDirty] attribute DOMString? cachedStringOrNoneAttri bute;
168 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te; 170 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te;
169 [CallWith=ScriptState] attribute any callWithScriptStateAnyAttribute; 171 [CallWith=ScriptState] attribute any callWithScriptStateAnyAttribute;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 // Nullable types 351 // Nullable types
350 long? nullableLongMethod(); 352 long? nullableLongMethod();
351 DOMString? nullableStringMethod(); 353 DOMString? nullableStringMethod();
352 TestInterface? nullableTestInterfaceMethod(); 354 TestInterface? nullableTestInterfaceMethod();
353 sequence<long>? nullableLongSequenceMethod(); 355 sequence<long>? nullableLongSequenceMethod();
354 // Union types 356 // Union types
355 (TestInterfaceGarbageCollected or DOMString) testInterfaceGarbageCollectedOr DOMStringMethod(); 357 (TestInterfaceGarbageCollected or DOMString) testInterfaceGarbageCollectedOr DOMStringMethod();
356 (TestInterfaceWillBeGarbageCollected or TestDictionary) testInterfaceWillBeG arbageCollectedOrTestDictionaryMethod(); 358 (TestInterfaceWillBeGarbageCollected or TestDictionary) testInterfaceWillBeG arbageCollectedOrTestDictionaryMethod();
357 (boolean or DOMString or unrestricted double) booleanOrDOMStringOrUnrestrict edDoubleMethod(); 359 (boolean or DOMString or unrestricted double) booleanOrDOMStringOrUnrestrict edDoubleMethod();
358 (TestInterface or long) testInterfaceOrLongMethod(); 360 (TestInterface or long) testInterfaceOrLongMethod();
359 void voidMethodDOMStringOrDouble((DOMString or double) arg); 361 void voidMethodDoubleOrDOMStringArg((double or DOMString) arg);
360 void voidMethodDOMStringOrArrayBufferOrArrayBufferView((DOMString or ArrayBu ffer or ArrayBufferView) arg); 362 void voidMethodDoubleOrDOMStringOrNullArg((double or DOMString)? arg);
363 void voidMethodDoubleOrNullOrDOMStringArg((double? or DOMString) arg);
364 void voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg((DOMString or Arra yBuffer or ArrayBufferView) arg);
361 // Currently only used on interface type arguments 365 // Currently only used on interface type arguments
362 void voidMethodTestInterfaceEmptyOrNullArg(TestInterfaceEmpty? nullableTestI nterfaceEmptyArg); 366 void voidMethodTestInterfaceEmptyOrNullArg(TestInterfaceEmpty? nullableTestI nterfaceEmptyArg);
363 // Callback interface types 367 // Callback interface types
364 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg); 368 void voidMethodTestCallbackInterfaceArg(TestCallbackInterface testCallbackIn terfaceArg);
365 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg); 369 void voidMethodOptionalTestCallbackInterfaceArg(optional TestCallbackInterfa ce optionalTestCallbackInterfaceArg);
366 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg); 370 void voidMethodTestCallbackInterfaceOrNullArg(TestCallbackInterface? testCal lbackInterfaceArg);
367 // Enumerations 371 // Enumerations
368 TestEnum testEnumMethod(); 372 TestEnum testEnumMethod();
369 void voidMethodTestEnumArg(TestEnum testEnumTypeArg); 373 void voidMethodTestEnumArg(TestEnum testEnumTypeArg);
370 // Exceptional types 374 // Exceptional types
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 561 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
558 [ImplementedInPrivateScript] attribute short shortAttribute; 562 [ImplementedInPrivateScript] attribute short shortAttribute;
559 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 563 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
560 [ImplementedInPrivateScript] attribute Node nodeAttribute; 564 [ImplementedInPrivateScript] attribute Node nodeAttribute;
561 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 565 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
562 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 566 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
563 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 567 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
564 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 568 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
565 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 569 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
566 }; 570 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/union.cpp ('k') | Source/bindings/tests/results/core/UnionTypesCore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698