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

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

Issue 309553002: Add ByteString support to IDL bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 /* 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // 80 //
81 // TestInterfaceEmpty is used as a stub interface type, for testing behavior 81 // TestInterfaceEmpty is used as a stub interface type, for testing behavior
82 // that should not depend on particular type (beyond "interface or not"). 82 // that should not depend on particular type (beyond "interface or not").
83 // read only 83 // read only
84 readonly attribute DOMString readonlyStringAttribute; 84 readonly attribute DOMString readonlyStringAttribute;
85 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; 85 readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute;
86 readonly attribute long readonlyLongAttribute; 86 readonly attribute long readonlyLongAttribute;
87 // Basic types 87 // Basic types
88 attribute Date dateAttribute; 88 attribute Date dateAttribute;
89 attribute DOMString stringAttribute; 89 attribute DOMString stringAttribute;
90 attribute ByteString byteStringAttribute;
90 attribute DOMTimeStamp domTimeStampAttribute; 91 attribute DOMTimeStamp domTimeStampAttribute;
91 attribute boolean booleanAttribute; 92 attribute boolean booleanAttribute;
92 attribute byte byteAttribute; 93 attribute byte byteAttribute;
93 attribute double doubleAttribute; 94 attribute double doubleAttribute;
94 attribute float floatAttribute; 95 attribute float floatAttribute;
95 attribute long longAttribute; 96 attribute long longAttribute;
96 attribute long long longLongAttribute; 97 attribute long long longLongAttribute;
97 attribute octet octetAttribute; 98 attribute octet octetAttribute;
98 attribute short shortAttribute; 99 attribute short shortAttribute;
99 attribute unrestricted double unrestrictedDoubleAttribute; 100 attribute unrestricted double unrestrictedDoubleAttribute;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 long longMethod(); 270 long longMethod();
270 long long longLongMethod(); 271 long long longLongMethod();
271 octet octetMethod(); 272 octet octetMethod();
272 short shortMethod(); 273 short shortMethod();
273 unsigned long unsignedLongMethod(); 274 unsigned long unsignedLongMethod();
274 unsigned long long unsignedLongLongMethod(); 275 unsigned long long unsignedLongLongMethod();
275 unsigned short unsignedShortMethod(); 276 unsigned short unsignedShortMethod();
276 277
277 void voidMethodDateArg(Date dateArg); 278 void voidMethodDateArg(Date dateArg);
278 void voidMethodStringArg(DOMString stringArg); 279 void voidMethodStringArg(DOMString stringArg);
280 void voidMethodByteStringArg(ByteString stringArg);
Nils Barth (inactive) 2014/06/02 03:20:16 Could you also add a method *returning* a ByteStri
jsbell 2014/06/03 23:22:36 Done.
279 void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); 281 void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg);
280 void voidMethodBooleanArg(boolean booleanArg); 282 void voidMethodBooleanArg(boolean booleanArg);
281 void voidMethodByteArg(byte byteArg); 283 void voidMethodByteArg(byte byteArg);
282 void voidMethodDoubleArg(double doubleArg); 284 void voidMethodDoubleArg(double doubleArg);
283 void voidMethodFloatArg(float floatArg); 285 void voidMethodFloatArg(float floatArg);
284 void voidMethodLongArg(long longArg); 286 void voidMethodLongArg(long longArg);
285 void voidMethodLongLongArg(long long longLongArg); 287 void voidMethodLongLongArg(long long longLongArg);
286 void voidMethodOctetArg(octet octetArg); 288 void voidMethodOctetArg(octet octetArg);
287 void voidMethodShortArg(short shortArg); 289 void voidMethodShortArg(short shortArg);
288 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); 290 void voidMethodUnsignedLongArg(unsigned long unsignedLongArg);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg); 493 void voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(TestInterfaceWill BeGarbageCollected[] testInterfaceWillBeGarbageCollectedArrayArg);
492 494
493 // Extended attributes on referenced interfaces 495 // Extended attributes on referenced interfaces
494 // (not self; self-reference tests at interface themselves) 496 // (not self; self-reference tests at interface themselves)
495 attribute TestInterface testInterfaceAttribute; // [ImplementedAs] 497 attribute TestInterface testInterfaceAttribute; // [ImplementedAs]
496 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected] 498 attribute TestInterfaceGarbageCollected testInterfaceGarbageCollectedAttribu te; // [GarbageCollected]
497 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected] 499 attribute TestInterfaceGarbageCollected? testInterfaceGarbageCollectedOrNull Attribute; // [GarbageCollected]
498 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected] 500 attribute TestInterfaceWillBeGarbageCollected testInterfaceWillBeGarbageColl ectedAttribute; // [WillBeGarbageCollected]
499 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected] 501 attribute TestInterfaceWillBeGarbageCollected? testInterfaceWillBeGarbageCol lectedOrNullAttribute; // [WillBeGarbageCollected]
500 }; 502 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698