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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/idls/core/TestTypedefs.idl

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types Created 3 years, 9 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 /* 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 24 matching lines...) Expand all
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; 44 typedef (DOMString or double) DOMStringOrDouble;
45 typedef record<ByteString, long> SomeRecordType;
46 typedef record<USVString, TestObject> RecordWithOilpanValueType;
47 typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) Union WithRecord;
45 48
46 [ 49 [
47 Constructor(String stringArg), 50 Constructor(String stringArg),
48 ] interface TestTypedefs { 51 ] interface TestTypedefs {
49 attribute ULongLong uLongLongAttribute; 52 attribute ULongLong uLongLongAttribute;
50 attribute T tAttribute; 53 attribute T tAttribute;
51 attribute DOMStringOrDouble? domStringOrDoubleOrNullAttribute; 54 attribute DOMStringOrDouble? domStringOrDoubleOrNullAttribute;
52 55
53 void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg); 56 void voidMethodArrayOfLongsArg(optional ArrayOfLongs arrayOfLongsArg);
54 57
55 void voidMethodFloatArgStringArg(Float floatArg, String stringArg); 58 void voidMethodFloatArgStringArg(Float floatArg, String stringArg);
56 void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCa llbackInterfaceTypeArg); 59 void voidMethodTestCallbackInterfaceTypeArg(TestCallbackInterfaceType testCa llbackInterfaceTypeArg);
57 60
58 ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInte rfaceEmptyType> testInterfaceEmptyTypeSequenceArg); 61 ULongLong uLongLongMethodTestInterfaceEmptyTypeSequenceArg(sequence<TestInte rfaceEmptyType> testInterfaceEmptyTypeSequenceArg);
59 TestInterfaceOrTestInterfaceEmpty testInterfaceOrTestInterfaceEmptyMethod(); 62 TestInterfaceOrTestInterfaceEmpty testInterfaceOrTestInterfaceEmptyMethod();
60 DOMStringOrDouble domStringOrDoubleMethod(); 63 DOMStringOrDouble domStringOrDoubleMethod();
61 64
62 ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfS tringsArg); 65 ArrayOfStrings arrayOfStringsMethodArrayOfStringsArg(ArrayOfStrings arrayOfS tringsArg);
63 String[] stringArrayMethodStringArrayArg(String[] stringArrayArg); 66 String[] stringArrayMethodStringArrayArg(String[] stringArrayArg);
67
68 void methodTakingRecord(SomeRecordType arg);
69 void methodTakingOilpanValueRecord(RecordWithOilpanValueType arg);
70 double unionWithRecordMethod(UnionWithRecord arg);
71 record<DOMString, boolean> methodThatReturnsRecord();
64 }; 72 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698