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

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

Issue 98033003: Support missing and invalid defaults for reflected attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use same idiom for looking up value in array 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 77 [Reflect, ReflectOnly=unique] attribute DOMString limitedToOnlyOneAttribute;
78 [Reflect, ReflectOnly=Per|Paal|Espen] attribute DOMString limitedToOnlyAttri bute; 78 [Reflect, ReflectOnly=Per|Paal|Espen] attribute DOMString limitedToOnlyAttri bute;
79 [Reflect=Other, ReflectOnly=Value1|Value2] attribute DOMString limitedToOnly OtherAttribute; 79 [Reflect=Other, ReflectOnly=Value1|Value2] attribute DOMString limitedToOnly OtherAttribute;
80 [Reflect, ReflectOnly=rsa|dsa, ReflectMissing=rsa] attribute DOMString limit edWithMissingDefaultAttribute;
81 [Reflect, ReflectOnly=ltr|rtl|auto, ReflectMissing=auto, ReflectInvalid=ltr] attribute DOMString limitedWithInvalidMissingDefaultAttribute;
82 [Reflect, ReflectOnly=left|right, ReflectMissing=left, ReflectInvalid=left] attribute DOMString limitedWithInvalidAndMissingDefaultAttribute;
80 83
81 // TypedArray attribute 84 // TypedArray attribute
82 attribute Float32Array typedArrayAttr; 85 attribute Float32Array typedArrayAttr;
83 86
84 // Methods 87 // Methods
85 void voidMethod(); 88 void voidMethod();
86 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 89 void voidMethodWithArgs(long longArg, DOMString strArg, TestObject objArg );
87 long longMethod(); 90 long longMethod();
88 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg ); 91 long longMethodWithArgs(long longArg, DOMString strArg, TestObject objArg );
89 [MeasureAs=TestFeature] TestObject objMethod(); 92 [MeasureAs=TestFeature] TestObject objMethod();
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 310 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
308 311
309 // PutForwards 312 // PutForwards
310 [PutForwards=href] readonly attribute TestNode location; 313 [PutForwards=href] readonly attribute TestNode location;
311 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException; 314 [PutForwards=hrefThrows] readonly attribute TestNode locationWithException;
312 }; 315 };
313 316
314 // The following comment should not generate any code 317 // The following comment should not generate any code
315 // TestObject implements TestImplements; 318 // TestObject implements TestImplements;
316 319
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698