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

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

Issue 124763002: Support IDL attributes limited to only known values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr; 67 [Reflect, TreatNullAs=NullString] attribute DOMString reflectedStringAttr;
68 [Reflect] attribute long reflectedIntegralAttr; 68 [Reflect] attribute long reflectedIntegralAttr;
69 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr; 69 [Reflect] attribute unsigned long reflectedUnsignedIntegralAttr;
70 [Reflect] attribute boolean reflectedBooleanAttr; 70 [Reflect] attribute boolean reflectedBooleanAttr;
71 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr; 71 [Reflect, TreatNullAs=NullString, URL] attribute DOMString reflectedURLAttr;
72 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedStringAttr; 72 [Reflect=customContentStringAttr, TreatNullAs=NullString] attribute DOMStrin g reflectedStringAttr;
73 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr; 73 [Reflect=customContentIntegralAttr] attribute long reflectedCustomIntegralAt tr;
74 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr; 74 [Reflect=customContentBooleanAttr] attribute boolean reflectedCustomBooleanA ttr;
75 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedCustomURLAttr; 75 [Reflect=customContentURLAttr, TreatNullAs=NullString, URL] attribute DOMStr ing reflectedCustomURLAttr;
76 [Reflect] attribute SVGAnimatedString animatedReflectedAttribute; 76 [Reflect] attribute SVGAnimatedString animatedReflectedAttribute;
77 [Reflect, ReflectOnly=unique] attribute DOMString limitedToOnlyOneAttribute;
78 [Reflect, ReflectOnly=Per Paal Espen] attribute DOMString limitedToOnlyAttri bute;
haraken 2014/01/06 06:23:53 Shall we use ReflectOnly=Per|Paal|Pspen instead of
sof 2014/01/06 06:40:51 I thought I could from reading the IDLExtendedAttr
Nils Barth (inactive) 2014/01/06 06:42:51 ?? To agree with haraken, we can't use spaces here
Nils Barth (inactive) 2014/01/06 07:12:49 Thanks for catching this; this is a bug, which I'v
sof 2014/01/06 10:59:19 Thanks; rebased this CL on top of it + switched to
79 [Reflect=Other, ReflectOnly=Value1 Value2] attribute DOMString limitedToOnly OtherAttribute;
77 80
78 // TypedArray attribute 81 // TypedArray attribute
79 attribute Float32Array typedArrayAttr; 82 attribute Float32Array typedArrayAttr;
80 83
81 // Methods 84 // Methods
82 void voidMethod(); 85 void voidMethod();
83 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 86 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg );
84 long longMethod(); 87 long longMethod();
85 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 88 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg );
86 [MeasureAs=TestFeature] TestObject objMethod(); 89 [MeasureAs=TestFeature] TestObject objMethod();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 307 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
305 308
306 // PutForwards 309 // PutForwards
307 [PutForwards=href] readonly attribute TestNode location; 310 [PutForwards=href] readonly attribute TestNode location;
308 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; 311 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException;
309 }; 312 };
310 313
311 // The following comment should not generate any code 314 // The following comment should not generate any code
312 // TestObject implements TestImplements; 315 // TestObject implements TestImplements;
313 316
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698