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

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

Issue 127903002: Empty reflected attributes and string literals in extended attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: docstring formatting Created 6 years, 11 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary formstrArg, with or without 5 * Redistribution and use in source and binary formstrArg, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 16 matching lines...) Expand all
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 // This IDL file is for testing the bindings code generator and for tracking 30 // This IDL file is for testing the bindings code generator and for tracking
31 // changes in its ouput. 31 // changes in its ouput.
32 32
33 enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" }; 33 enum TestEnumType { "", "EnumValue1", "EnumValue2", "EnumValue3" };
34 34
35 callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2); 35 callback TestCallbackFunction = void (TestEnumType formal1, TestObject formal2);
36 36
37
37 [ 38 [
38 Constructor(TestCallbackInterface testCallbackInterface), 39 Constructor(TestCallbackInterface testCallbackInterface),
39 ImplementedAs=TestObj 40 ImplementedAs=TestObj
40 ] interface TestObject : EventTarget { 41 ] interface TestObject : EventTarget {
41 // Attributes 42 // Attributes
42 readonly attribute long readOnlyLongAttr; 43 readonly attribute long readOnlyLongAttr;
43 readonly attribute DOMString readOnlyStringAttr; 44 readonly attribute DOMString readOnlyStringAttr;
44 readonly attribute TestObject readOnlyTestObjectAttr; 45 readonly attribute TestObject readOnlyTestObjectAttr;
45 static readonly attribute long staticReadOnlyLongAttr; 46 static readonly attribute long staticReadOnlyLongAttr;
46 static attribute DOMString staticStringAttr; 47 static attribute DOMString staticStringAttr;
(...skipping 20 matching lines...) Expand all
67 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr; 68 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr;
68 [Reflect] attribute long reflectedIntegralAttr; 69 [Reflect] attribute long reflectedIntegralAttr;
69 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr; 70 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr;
70 [Reflect] attribute boolean reflectedBooleanAttr; 71 [Reflect] attribute boolean reflectedBooleanAttr;
71 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr; 72 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr;
72 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedStringAttr; 73 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedStringAttr;
73 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr; 74 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr;
74 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr; 75 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr;
75 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedCustomURLAttr; 76 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedCustomURLAttr;
76 [Reflect] attribute SVGAnimatedString animatedReflectedAttribute; 77 [Reflect] attribute SVGAnimatedString animatedReflectedAttribute;
77 [Reflect, ReflectOnly=unique] attribute DOMString limitedToOnlyOneAttribute; 78 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e;
78 [Reflect, ReflectOnly=Per|Paal|Espen] attribute DOMString limitedToOnlyAttri bute; 79 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl yAttribute;
79 [Reflect=Other, ReflectOnly=Value1|Value2] attribute DOMString limitedToOnly OtherAttribute; 80 [Reflect=Other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT oOnlyOtherAttribute;
80 [Reflect, ReflectOnly=rsa|dsa, ReflectMissing=rsa] attribute DOMString limit edWithMissingDefaultAttribute; 81 [Reflect, ReflectOnly="rsa" | "dsa", ReflectMissing="rsa"] attribute DOMStri ng limitedWithMissingDefaultAttribute;
81 [Reflect, ReflectOnly=ltr|rtl|auto, ReflectMissing=auto, ReflectInvalid=ltr] attribute DOMString limitedWithInvalidMissingDefaultAttribute; 82 [Reflect, ReflectOnly="ltr" | "rtl" | "auto", ReflectMissing="auto", Reflect Invalid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute;
82 [Reflect, ReflectOnly=left|right, ReflectMissing=left, ReflectInvalid=left] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute; 83 [Reflect, ReflectOnly="left" | "right", ReflectMissing="left", ReflectInvali d="left"] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute;
84 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ;
85 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute;
83 86
84 // TypedArray attribute 87 // TypedArray attribute
85 attribute Float32Array typedArrayAttr; 88 attribute Float32Array typedArrayAttr;
86 89
87 // Methods 90 // Methods
88 void voidMethod(); 91 void voidMethod();
89 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 92 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg );
90 long longMethod(); 93 long longMethod();
91 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 94 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg );
92 [MeasureAs=TestFeature] TestObject objMethod(); 95 [MeasureAs=TestFeature] TestObject objMethod();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 313 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
311 314
312 // PutForwards 315 // PutForwards
313 [PutForwards=href] readonly attribute TestNode location; 316 [PutForwards=href] readonly attribute TestNode location;
314 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; 317 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException;
315 }; 318 };
316 319
317 // The following comment should not generate any code 320 // The following comment should not generate any code
318 // TestObject implements TestImplements; 321 // TestObject implements TestImplements;
319 322
OLDNEW
« no previous file with comments | « Source/bindings/scripts/unstable/blink_idl_parser.py ('k') | Source/bindings/tests/idls/TestObjectPython.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698