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

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

Issue 17851002: Use & instead of | in the value of [CallWith] / [SetterCallWith] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/generate-bindings.pl ('k') | Source/core/page/Console.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void removeEventListener(DOMString type, 114 void removeEventListener(DOMString type,
115 EventListener listener, 115 EventListener listener,
116 optional boolean useCapture); 116 optional boolean useCapture);
117 117
118 // 'CallWith' extended attribute 118 // 'CallWith' extended attribute
119 [CallWith=ScriptState] void withScriptStateVoid(); 119 [CallWith=ScriptState] void withScriptStateVoid();
120 [CallWith=ScriptState] TestObject withScriptStateObj(); 120 [CallWith=ScriptState] TestObject withScriptStateObj();
121 [CallWith=ScriptState, RaisesException] void withScriptStateVoidException(); 121 [CallWith=ScriptState, RaisesException] void withScriptStateVoidException();
122 [CallWith=ScriptState, RaisesException] TestObject withScriptStateObjExcepti on(); 122 [CallWith=ScriptState, RaisesException] TestObject withScriptStateObjExcepti on();
123 [CallWith=ScriptExecutionContext] void withScriptExecutionContext(); 123 [CallWith=ScriptExecutionContext] void withScriptExecutionContext();
124 [CallWith=ScriptExecutionContext|ScriptState] void withScriptExecutionContex tAndScriptState(); 124 [CallWith=ScriptExecutionContext&ScriptState] void withScriptExecutionContex tAndScriptState();
125 [CallWith=ScriptExecutionContext|ScriptState, RaisesException] TestObject wi thScriptExecutionContextAndScriptStateObjException(); 125 [CallWith=ScriptExecutionContext&ScriptState, RaisesException] TestObject wi thScriptExecutionContextAndScriptStateObjException();
126 [CallWith= ScriptExecutionContext | ScriptState ] TestObject withScriptE xecutionContextAndScriptStateWithSpaces(); 126 [CallWith= ScriptExecutionContext & ScriptState ] TestObject withScriptE xecutionContextAndScriptStateWithSpaces();
127 [CallWith=ActiveWindow|FirstWindow] void withActiveWindowAndFirstWindow(); 127 [CallWith=ActiveWindow&FirstWindow] void withActiveWindowAndFirstWindow();
128 128
129 [CallWith=ScriptState] attribute long withScriptStateAttribute; 129 [CallWith=ScriptState] attribute long withScriptStateAttribute;
130 [CallWith=ScriptExecutionContext] attribute TestObject withScriptExecutionCo ntextAttribute; 130 [CallWith=ScriptExecutionContext] attribute TestObject withScriptExecutionCo ntextAttribute;
131 [SetterCallWith=ActiveWindow|FirstWindow] attribute TestObject withActiveWin dowAndFirstWindowAttribute; 131 [SetterCallWith=ActiveWindow&FirstWindow] attribute TestObject withActiveWin dowAndFirstWindowAttribute;
132 [CallWith=ScriptState, GetterRaisesException] attribute TestObject withScrip tStateAttributeRaises; 132 [CallWith=ScriptState, GetterRaisesException] attribute TestObject withScrip tStateAttributeRaises;
133 [CallWith=ScriptExecutionContext, GetterRaisesException] attribute TestObjec t withScriptExecutionContextAttributeRaises; 133 [CallWith=ScriptExecutionContext, GetterRaisesException] attribute TestObjec t withScriptExecutionContextAttributeRaises;
134 [CallWith=ScriptExecutionContext|ScriptState] attribute TestObject withScrip tExecutionContextAndScriptStateAttribute; 134 [CallWith=ScriptExecutionContext&ScriptState] attribute TestObject withScrip tExecutionContextAndScriptStateAttribute;
135 [CallWith=ScriptExecutionContext|ScriptState, GetterRaisesException] attribu te TestObject withScriptExecutionContextAndScriptStateAttributeRaises; 135 [CallWith=ScriptExecutionContext&ScriptState, GetterRaisesException] attribu te TestObject withScriptExecutionContextAndScriptStateAttributeRaises;
136 [CallWith= ScriptExecutionContext | ScriptState ] attribute TestObject w ithScriptExecutionContextAndScriptStateWithSpacesAttribute; 136 [CallWith= ScriptExecutionContext & ScriptState ] attribute TestObject w ithScriptExecutionContextAndScriptStateWithSpacesAttribute;
137 137
138 // optional parameters 138 // optional parameters
139 void methodWithOptionalArg(optional long opt); 139 void methodWithOptionalArg(optional long opt);
140 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op t); 140 void methodWithNonOptionalArgAndOptionalArg(long nonOpt, optional long op t);
141 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon g opt1, optional long opt2); 141 void methodWithNonOptionalArgAndTwoOptionalArgs(long nonOpt, optional lon g opt1, optional long opt2);
142 void methodWithOptionalString(optional DOMString str); 142 void methodWithOptionalString(optional DOMString str);
143 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM String str); 143 void methodWithOptionalStringIsUndefined([Default=Undefined] optional DOM String str);
144 void methodWithOptionalStringIsNullString([Default=NullString] optional D OMString str); 144 void methodWithOptionalStringIsNullString([Default=NullString] optional D OMString str);
145 145
146 // Callback parameters 146 // Callback parameters
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 317
318 [DeprecateAs=Method] void deprecatedMethod(); 318 [DeprecateAs=Method] void deprecatedMethod();
319 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); 319 [DeprecateAs=StaticMethod] static void deprecatedStaticMethod();
320 320
321 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; 321 [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1;
322 }; 322 };
323 323
324 // The following comment should not generate any code 324 // The following comment should not generate any code
325 // TestObject implements TestImplements; 325 // TestObject implements TestImplements;
326 326
OLDNEW
« no previous file with comments | « Source/bindings/scripts/generate-bindings.pl ('k') | Source/core/page/Console.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698