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

Side by Side Diff: trunk/Source/bindings/tests/idls/TestPartialInterface.idl

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 5 * modification, are permitted provided that the following conditions are
6 * are met: 6 * met:
7 * 7 *
8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * * Redistributions in binary form must reproduce the above
11 * notice, this list of conditions and the following disclaimer in the 11 * copyright notice, this list of conditions and the following disclaimer
12 * documentation and/or other materials provided with the distribution. 12 * in the documentation and/or other materials provided with the
13 * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of 13 * distribution.
14 * its contributors may be used to endorse or promote products derived 14 * * Neither the name of Google Inc. nor the names of its
15 * from this software without specific prior written permission. 15 * contributors may be used to endorse or promote products derived from
16 * this software without specific prior written permission.
16 * 17 *
17 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 29 */
28 30
29 // This IDL file is for testing the bindings code generator and for tracking 31 enum PartialEnumType {
30 // changes in its ouput. 32 "foo",
33 "bar"
34 };
35
36 typedef DOMString PartialString;
37
38 callback PartialCallbackType = void (PartialString value);
31 [ 39 [
32 Conditional=CONDITION_PARTIAL, 40 Conditional=PARTIAL_CONDITION,
41 RuntimeEnabled=PartialFeatureName,
33 ] partial interface TestInterface { 42 ] partial interface TestInterface {
34 static readonly attribute long supplementalStaticReadOnlyAttr; 43 const unsigned short PARTIAL_UNSIGNED_SHORT = 0;
35 static attribute DOMString supplementalStaticAttr;
36 readonly attribute DOMString supplementalStr1;
37 attribute DOMString supplementalStr2;
38 attribute Node supplementalNode;
39 44
40 void supplementalMethod1(); 45 attribute long partialLongAttribute;
41 [CallWith=ExecutionContext, RaisesException] TestObject supplementalMethod2( DOMString strArg, TestObject objArg); 46 static attribute long partialStaticLongAttribute;
42 [Custom] void supplementalMethod3(); 47 [CallWith=ExecutionContext] attribute long partialCallWithExecutionContextLo ngAttribute;
43 static void supplementalMethod4();
44 48
45 const unsigned short SUPPLEMENTALCONSTANT1 = 1; 49 void partialVoidMethod();
46 [Reflect=CONST_IMPL] const unsigned short SUPPLEMENTALCONSTANT2 = 2; 50 static void partialStaticVoidMethod();
51 void partialVoidMethodLongArg(long longArg);
52 [CallWith=ExecutionContext, RaisesException] void partialCallWithExecutionCo ntextRaisesExceptionVoidMethod();
47 53
48 [RuntimeEnabled=Condition13] attribute Node Node13; 54 attribute PartialEnumType partialPartialEnumTypeAttribute;
55 void partialVoidMethodPartialCallbackTypeArg(PartialCallbackType partialCall backTypeArg);
49 }; 56 };
OLDNEW
« no previous file with comments | « trunk/Source/bindings/tests/idls/TestObjectPython.idl ('k') | trunk/Source/bindings/tests/idls/TestPartialInterface2.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698