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

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

Issue 854113002: IDL: Enumeration support in union types (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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) 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // Static attributes 153 // Static attributes
154 static attribute DOMString staticStringAttribute; 154 static attribute DOMString staticStringAttribute;
155 static attribute long staticLongAttribute; 155 static attribute long staticLongAttribute;
156 // Exceptional type 156 // Exceptional type
157 attribute EventHandler eventHandlerAttribute; 157 attribute EventHandler eventHandlerAttribute;
158 // Union types 158 // Union types
159 attribute (double or DOMString) doubleOrStringAttribute; 159 attribute (double or DOMString) doubleOrStringAttribute;
160 attribute (double or DOMString)? doubleOrStringOrNullAttribute; 160 attribute (double or DOMString)? doubleOrStringOrNullAttribute;
161 attribute (double? or DOMString) doubleOrNullStringAttribute; 161 attribute (double? or DOMString) doubleOrNullStringAttribute;
162 attribute (DOMString or sequence<DOMString>) stringOrStringSequenceAttribute ; 162 attribute (DOMString or sequence<DOMString>) stringOrStringSequenceAttribute ;
163 attribute (TestEnum or double) testEnumOrDoubleAttribute;
163 164
164 // Extended attributes 165 // Extended attributes
165 [LogActivity, LogAllWorlds] attribute long activityLoggingAccessForAllWorlds LongAttribute; 166 [LogActivity, LogAllWorlds] attribute long activityLoggingAccessForAllWorlds LongAttribute;
166 [LogActivity=GetterOnly, LogAllWorlds] attribute long activityLoggingGetterF orAllWorldsLongAttribute; 167 [LogActivity=GetterOnly, LogAllWorlds] attribute long activityLoggingGetterF orAllWorldsLongAttribute;
167 [LogActivity=SetterOnly, LogAllWorlds] attribute long activityLoggingSetterF orAllWorldsLongAttribute; 168 [LogActivity=SetterOnly, LogAllWorlds] attribute long activityLoggingSetterF orAllWorldsLongAttribute;
168 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute; 169 [CachedAttribute=isValueDirty] attribute any cachedAttributeAnyAttribute;
169 [CachedAttribute=isArrayDirty] attribute DOMString[] cachedArrayAttribute; 170 [CachedAttribute=isArrayDirty] attribute DOMString[] cachedArrayAttribute;
170 [CachedAttribute=isStringDirty] attribute DOMString? cachedStringOrNoneAttri bute; 171 [CachedAttribute=isStringDirty] attribute DOMString? cachedStringOrNoneAttri bute;
171 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te; 172 [CallWith=ExecutionContext] attribute any callWithExecutionContextAnyAttribu te;
172 [CallWith=ScriptState] attribute any callWithScriptStateAnyAttribute; 173 [CallWith=ScriptState] attribute any callWithScriptStateAnyAttribute;
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 [ImplementedInPrivateScript] attribute DOMString stringAttribute; 575 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
575 [ImplementedInPrivateScript] attribute Node nodeAttribute; 576 [ImplementedInPrivateScript] attribute Node nodeAttribute;
576 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2); 577 [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl y(short value1, short value2);
577 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly; 578 [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo rPrivateScriptOnly;
578 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2); 579 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv ateScriptOnly(short value1, short value2);
579 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly; 580 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString attributeForPrivateScriptOnly;
580 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; 581 [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript;
581 582
582 maplike<long, DOMString>; 583 maplike<long, DOMString>;
583 }; 584 };
OLDNEW
« no previous file with comments | « Source/bindings/templates/union.cpp ('k') | Source/bindings/tests/results/core/UnionTypesCore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698