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

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

Issue 464273003: Restructure handling of list type extended attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minor fixes Created 6 years, 4 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 // Extended attributes 158 // Extended attributes
159 [LogActivity, LogAllWorlds] attribute long activityLoggingAccessForAllWorlds LongAttribute; 159 [LogActivity, LogAllWorlds] attribute long activityLoggingAccessForAllWorlds LongAttribute;
160 [LogActivity=GetterOnly, LogAllWorlds] attribute long activityLoggingGetterF orAllWorldsLongAttribute; 160 [LogActivity=GetterOnly, LogAllWorlds] attribute long activityLoggingGetterF orAllWorldsLongAttribute;
161 [LogActivity=SetterOnly, LogAllWorlds] attribute long activityLoggingSetterF orAllWorldsLongAttribute; 161 [LogActivity=SetterOnly, LogAllWorlds] attribute long activityLoggingSetterF orAllWorldsLongAttribute;
162 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute; 162 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute;
163 [CachedAttribute=isArrayDirty] attribute DOMString[] cachedArrayAttribute; 163 [CachedAttribute=isArrayDirty] attribute DOMString[] cachedArrayAttribute;
164 [CachedAttribute=isStringDirty] attribute DOMString? cachedStringOrNoneAttri bute; 164 [CachedAttribute=isStringDirty] attribute DOMString? cachedStringOrNoneAttri bute;
165 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te; 165 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te;
166 [CallWith=ScriptState] attribute any callWithScriptStateAnyAttribute; 166 [CallWith=ScriptState] attribute any callWithScriptStateAnyAttribute;
167 [CallWith=ExecutionContext|ScriptState] attribute any callWithExecutionConte xtAndScriptStateAnyAttribute; 167 [CallWith=(ExecutionContext,ScriptState)] attribute any callWithExecutionCon textAndScriptStateAnyAttribute;
168 [CheckSecurity=Node] readonly attribute Document checkSecurityForNodeReadonl yDocumentAttribute; // All uses are read only 168 [CheckSecurity=Node] readonly attribute Document checkSecurityForNodeReadonl yDocumentAttribute; // All uses are read only
169 [Conditional=CONDITION] attribute long conditionalLongAttribute; 169 [Conditional=CONDITION] attribute long conditionalLongAttribute;
170 [Conditional=(CONDITION_1,CONDITION_2)] attribute long conditionalAndLongAtt ribute;
171 [Conditional=CONDITION_1|CONDITION_2] attribute long conditionalOrLongAttrib ute;
172 // Constructors: FIXME: replace suffix with [ConstructorAttribute] 170 // Constructors: FIXME: replace suffix with [ConstructorAttribute]
173 attribute TestInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribu te; 171 attribute TestInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribu te;
174 [DeprecateAs=deprecatedTestInterfaceEmptyConstructorAttribute] attribute Tes tInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute; 172 [DeprecateAs=deprecatedTestInterfaceEmptyConstructorAttribute] attribute Tes tInterfaceEmptyConstructor testInterfaceEmptyConstructorAttribute;
175 [MeasureAs=FeatureName] attribute TestInterfaceEmptyConstructor measureAsFea tureNameTestInterfaceEmptyConstructorAttribute; 173 [MeasureAs=FeatureName] attribute TestInterfaceEmptyConstructor measureAsFea tureNameTestInterfaceEmptyConstructorAttribute;
176 [Custom] attribute object customObjectAttribute; 174 [Custom] attribute object customObjectAttribute;
177 [Custom=Getter] attribute long customGetterLongAttribute; 175 [Custom=Getter] attribute long customGetterLongAttribute;
178 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut e; 176 [Custom=Getter] readonly attribute object customGetterReadonlyObjectAttribut e;
179 [Custom=Setter] attribute long customSetterLongAttribute; 177 [Custom=Setter] attribute long customSetterLongAttribute;
180 [Conditional=CONDITION, Custom] attribute long customLongAttribute; 178 [Conditional=CONDITION, Custom] attribute long customLongAttribute;
181 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead onlyLongAttribute; 179 [CustomElementCallbacks] readonly attribute long customElementsCallbacksRead onlyLongAttribute;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 [Reflect] attribute unsigned long reflectUnsignedLongAttribute; 215 [Reflect] attribute unsigned long reflectUnsignedLongAttribute;
218 // [Reflect] exceptional names 216 // [Reflect] exceptional names
219 [Reflect] attribute DOMString id; 217 [Reflect] attribute DOMString id;
220 [Reflect] attribute DOMString name; 218 [Reflect] attribute DOMString name;
221 [Reflect] attribute DOMString class; 219 [Reflect] attribute DOMString class;
222 [Reflect=id] attribute DOMString reflectedId; 220 [Reflect=id] attribute DOMString reflectedId;
223 [Reflect=name] attribute DOMString reflectedName; 221 [Reflect=name] attribute DOMString reflectedName;
224 [Reflect=class] attribute DOMString reflectedClass; 222 [Reflect=class] attribute DOMString reflectedClass;
225 // Limited value attributes and enumerated attributes 223 // Limited value attributes and enumerated attributes
226 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e; 224 [Reflect, ReflectOnly="unique"] attribute DOMString limitedToOnlyOneAttribut e;
227 [Reflect, ReflectOnly="Per"|"Paal"|"Espen"] attribute DOMString limitedToOnl yAttribute; 225 [Reflect, ReflectOnly=("Per","Paal","Espen")] attribute DOMString limitedToO nlyAttribute;
228 [Reflect=other, ReflectOnly="Value1"|"Value2" ] attribute DOMString limitedT oOnlyOtherAttribute; 226 [Reflect=other, ReflectOnly=("Value1","Value2")] attribute DOMString limited ToOnlyOtherAttribute;
229 [Reflect, ReflectOnly="rsa"|"dsa", ReflectMissing="rsa"] attribute DOMString limitedWithMissingDefaultAttribute; 227 [Reflect, ReflectOnly=("rsa","dsa"), ReflectMissing="rsa"] attribute DOMStri ng limitedWithMissingDefaultAttribute;
230 [Reflect, ReflectOnly="ltr"|"rtl"|"auto", ReflectMissing="auto", ReflectInva lid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute; 228 [Reflect, ReflectOnly=("ltr","rtl","auto"), ReflectMissing="auto", ReflectIn valid="ltr"] attribute DOMString limitedWithInvalidMissingDefaultAttribute;
231 [Reflect, ReflectOnly="anonymous"|"use-credentials", ReflectEmpty="anonymous ", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribute ; 229 [Reflect, ReflectOnly=("anonymous","use-credentials"), ReflectEmpty="anonymo us", ReflectInvalid="anonymous"] readonly attribute DOMString corsSettingAttribu te;
232 [Reflect, ReflectOnly="empty"|"missing"|"invalid"|"a-normal", ReflectEmpty=" empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute D OMString limitedWithEmptyMissingInvalidAttribute; 230 [Reflect, ReflectOnly=("empty","missing","invalid","a-normal"), ReflectEmpty ="empty", ReflectMissing="missing", ReflectInvalid="invalid"] readonly attribute DOMString limitedWithEmptyMissingInvalidAttribute;
233 231
234 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute; 232 [Replaceable] readonly attribute long replaceableReadonlyLongAttribute;
235 [Replaceable, PutForwards=href] readonly attribute TestNode locationReplacea ble; 233 [Replaceable, PutForwards=href] readonly attribute TestNode locationReplacea ble;
236 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute; 234 [RuntimeEnabled=FeatureName] attribute long runtimeEnabledLongAttribute;
237 [PerContextEnabled=FeatureName, RuntimeEnabled=FeatureName] attribute long p erContextEnabledRuntimeEnabledLongAttribute; 235 [PerContextEnabled=FeatureName, RuntimeEnabled=FeatureName] attribute long p erContextEnabledRuntimeEnabledLongAttribute;
238 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition alRuntimeEnabledLongAttribute; 236 [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition alRuntimeEnabledLongAttribute;
239 [SetterCallWith=(ActiveWindow,FirstWindow)] attribute DOMString setterCallWi thActiveWindowAndFirstWindowStringAttribute; 237 [SetterCallWith=(ActiveWindow,FirstWindow)] attribute DOMString setterCallWi thActiveWindowAndFirstWindowStringAttribute;
240 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio nContextStringAttribute; 238 [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio nContextStringAttribute;
241 [TreatNullAs=EmptyString] attribute DOMString treatNullAsEmptyStringStringAt tribute; 239 [TreatNullAs=EmptyString] attribute DOMString treatNullAsEmptyStringStringAt tribute;
242 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ibute; 240 [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr ibute;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod(); 465 [CallWith=ExecutionContext] void callWithExecutionContextVoidMethod();
468 [CallWith=ScriptState] void callWithScriptStateVoidMethod(); 466 [CallWith=ScriptState] void callWithScriptStateVoidMethod();
469 [CallWith=ScriptState] long callWithScriptStateLongMethod(); 467 [CallWith=ScriptState] long callWithScriptStateLongMethod();
470 [CallWith=(ScriptState,ExecutionContext)] void callWithScriptStateExecutionC ontextVoidMethod(); 468 [CallWith=(ScriptState,ExecutionContext)] void callWithScriptStateExecutionC ontextVoidMethod();
471 [CallWith=(ScriptState,ScriptArguments)] void callWithScriptStateScriptArgum entsVoidMethod(); 469 [CallWith=(ScriptState,ScriptArguments)] void callWithScriptStateScriptArgum entsVoidMethod();
472 [CallWith=(ScriptState,ScriptArguments)] void callWithScriptStateScriptArgum entsVoidMethodOptionalBooleanArg(optional boolean optionalBooleanArg); 470 [CallWith=(ScriptState,ScriptArguments)] void callWithScriptStateScriptArgum entsVoidMethodOptionalBooleanArg(optional boolean optionalBooleanArg);
473 [CallWith=ActiveWindow] void callWithActiveWindow(); 471 [CallWith=ActiveWindow] void callWithActiveWindow();
474 [CallWith=(ActiveWindow,FirstWindow)] void callWithActiveWindowScriptWindow( ); 472 [CallWith=(ActiveWindow,FirstWindow)] void callWithActiveWindowScriptWindow( );
475 [CheckSecurity=Node] void checkSecurityForNodeVoidMethod(); 473 [CheckSecurity=Node] void checkSecurityForNodeVoidMethod();
476 [Conditional=CONDITION] void conditionalConditionVoidMethod(); 474 [Conditional=CONDITION] void conditionalConditionVoidMethod();
477 [Conditional=(CONDITION_1,CONDITION_2)] void conditionalCondition1AndConditi on2VoidMethod();
478 [Conditional=CONDITION] static void conditionalConditionStaticVoidMethod(); 475 [Conditional=CONDITION] static void conditionalConditionStaticVoidMethod();
479 [Custom] void customVoidMethod(); 476 [Custom] void customVoidMethod();
480 [Conditional=CONDITION, Custom] void conditionalConditionCustomVoidMethod(); 477 [Conditional=CONDITION, Custom] void conditionalConditionCustomVoidMethod();
481 [CustomElementCallbacks] void customElementCallbacksVoidMethod(); 478 [CustomElementCallbacks] void customElementCallbacksVoidMethod();
482 [DeprecateAs=voidMethod] void deprecatedVoidMethod(); 479 [DeprecateAs=voidMethod] void deprecatedVoidMethod();
483 [DoNotCheckSignature] void doNotCheckSignatureVoidMethod(); 480 [DoNotCheckSignature] void doNotCheckSignatureVoidMethod();
484 [ImplementedAs=implementedAsMethodName] void implementedAsVoidMethod(); 481 [ImplementedAs=implementedAsMethodName] void implementedAsVoidMethod();
485 [MeasureAs=TestFeature] void measureAsVoidMethod(); 482 [MeasureAs=TestFeature] void measureAsVoidMethod();
486 [DeprecateAs=TestFeatureA] void DeprecateAsOverloadedMethod(); 483 [DeprecateAs=TestFeatureA] void DeprecateAsOverloadedMethod();
487 [DeprecateAs=TestFeatureB] void DeprecateAsOverloadedMethod(long arg); 484 [DeprecateAs=TestFeatureB] void DeprecateAsOverloadedMethod(long arg);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI nPrivateScript(Document document, Node node, short value1, double value2, DOMStr ing string); 546 [ImplementedInPrivateScript] Node nodeMethodWithVariousArgumentsImplementedI nPrivateScript(Document document, Node node, short value1, double value2, DOMStr ing string);
550 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ; 547 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute ;
551 [ImplementedInPrivateScript] attribute short shortAttribute; 548 [ImplementedInPrivateScript] attribute short shortAttribute;
552 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 549 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
553 [ImplementedInPrivateScript] attribute Node nodeAttribute; 550 [ImplementedInPrivateScript] attribute Node nodeAttribute;
554 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 551 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
555 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 552 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
556 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 553 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
557 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 554 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
558 }; 555 };
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestInterface3.idl ('k') | Source/bindings/tests/results/V8TestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698