 Chromium Code Reviews
 Chromium Code Reviews Issue 466323002:
  IDL: Use Nullable for union type return value  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master
    
  
    Issue 466323002:
  IDL: Use Nullable for union type return value  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/blink.git@master| OLD | NEW | 
|---|---|
| 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 23 matching lines...) Expand all Loading... | |
| 34 | 34 | 
| 35 typedef float Float; | 35 typedef float Float; | 
| 36 typedef unsigned long long ULongLong; | 36 typedef unsigned long long ULongLong; | 
| 37 typedef TestInterfaceEmpty TestInterfaceEmptyType; | 37 typedef TestInterfaceEmpty TestInterfaceEmptyType; | 
| 38 typedef long[] ArrayOfLongs; | 38 typedef long[] ArrayOfLongs; | 
| 39 typedef DOMString String; | 39 typedef DOMString String; | 
| 40 typedef DOMString[] ArrayOfStrings; | 40 typedef DOMString[] ArrayOfStrings; | 
| 41 typedef TestCallbackInterface TestCallbackInterfaceType; | 41 typedef TestCallbackInterface TestCallbackInterfaceType; | 
| 42 typedef TestInterfaceConstructor T; | 42 typedef TestInterfaceConstructor T; | 
| 43 typedef (TestInterface or TestInterfaceEmpty) TestInterfaceOrTestInterfaceEmpty; | 43 typedef (TestInterface or TestInterfaceEmpty) TestInterfaceOrTestInterfaceEmpty; | 
| 44 typedef (DOMString or double) DOMStringOrDouble; | |
| 
haraken
2014/08/15 07:34:15
Consider adding more test cases about union types
 
bashi
2014/08/15 10:14:07
Yes. We should add more test cases. I'll add more
 | |
| 44 | 45 | 
| 45 [ | 46 [ | 
| 46 Constructor(String stringArg), | 47 Constructor(String stringArg), | 
| 47 ] interface TestTypedefs { | 48 ] interface TestTypedefs { | 
| 48 attribute ULongLong uLongLongAttribute; | 49 attribute ULongLong uLongLongAttribute; | 
| 49 attribute T tAttribute; | 50 attribute T tAttribute; | 
| 50 | 51 | 
| 51 void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg); | 52 void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg); | 
| 52 | 53 | 
| 53 void voidMethodFloatArgStringArg(Float floatArg, String stringArg); | 54 void voidMethodFloatArgStringArg(Float floatArg, String stringArg); | 
| 54 void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCa llbackInterfaceTypeArg); | 55 void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCa llbackInterfaceTypeArg); | 
| 55 | 56 | 
| 56 ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInte rfaceEmptyType> testInterfaceEmptyTypeSequenceArg); | 57 ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInte rfaceEmptyType> testInterfaceEmptyTypeSequenceArg); | 
| 57 TestInterfaceOrTestInterfaceEmpty testInterfaceOrTestInterfaceEmptyMethod(); | 58 TestInterfaceOrTestInterfaceEmpty testInterfaceOrTestInterfaceEmptyMethod(); | 
| 59 DOMStringOrDouble domStringOrDoubleMethod(); | |
| 58 | 60 | 
| 59 ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfS tringsArg); | 61 ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfS tringsArg); | 
| 60 String[] stringArrayMethodStringArrayArg(String[] stringArrayArg); | 62 String[] stringArrayMethodStringArrayArg(String[] stringArrayArg); | 
| 61 }; | 63 }; | 
| OLD | NEW |