1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 ] interface PrivateScriptTest {
8 [ImplementedInPrivateScript] void doNothing();
9 [ImplementedInPrivateScript] short return123();
10 [ImplementedInPrivateScript] short echoInteger(short value);
11 [ImplementedInPrivateScript] DOMString echoString(DOMString value);
12 [ImplementedInPrivateScript] Node echoNode(Node value);
13 [ImplementedInPrivateScript] short addInteger(short value1, short value2);
14 [ImplementedInPrivateScript] DOMString addString(DOMString value1, DOMString value2);
15 [ImplementedInPrivateScript] void setIntegerToPrototype(short value);
16 [ImplementedInPrivateScript] short getIntegerFromPrototype();
17 [ImplementedInPrivateScript] void setIntegerToDocument(Document document, short value);
18 [ImplementedInPrivateScript] short getIntegerFromDocument(Document document);
19 [ImplementedInPrivateScript] Node createElement(Document document);
20 [ImplementedInPrivateScript] void appendChild(Node node1, Node node2);
21 [ImplementedInPrivateScript] Node firstChild(Node node);
22 [ImplementedInPrivateScript] Node nextSibling(Node node);
23 [ImplementedInPrivateScript] DOMString innerHTML(Node node);
24 [ImplementedInPrivateScript] void setInnerHTML(Node node, DOMString string);
25 [ImplementedInPrivateScript] void addClickListener(Node node);
26 [ImplementedInPrivateScript] void clickNode(Document document, Node node);
27 [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute;
28 [ImplementedInPrivateScript] attribute short shortAttribute;
29 [ImplementedInPrivateScript] attribute DOMString stringAttribute;
30 [ImplementedInPrivateScript] attribute Node nodeAttribute;
31 [ImplementedInPrivateScript] attribute Node nodeAttributeThrowsIndexSizeError;
32 [ImplementedInPrivateScript] void voidMethodThrowsDOMSyntaxError();
33 [ImplementedInPrivateScript] void voidMethodThrowsError();
34 [ImplementedInPrivateScript] void voidMethodThrowsTypeError();
35 [ImplementedInPrivateScript] void voidMethodThrowsRangeError();
36 [ImplementedInPrivateScript] void voidMethodThrowsSyntaxError();
37 [ImplementedInPrivateScript] void voidMethodThrowsReferenceError();
38 [ImplementedInPrivateScript] void voidMethodThrowsStackOverflowError();
39 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short addIntegerForPrivateScriptOnly(short value1, short value2);
40 [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString stringAttributeForPrivateScriptOnly;
41 [ImplementedInPrivateScript] short addIntegerImplementedInCPP(short value1, short value2);
42 [OnlyExposedToPrivateScript] short addIntegerImplementedInCPPForPrivateScriptOnly(short value1, short value2);
43 [ImplementedInPrivateScript] attribute DOMString stringAttributeImplementedInCPP;
44 [OnlyExposedToPrivateScript] attribute DOMString stringAttributeImplementedInCPPForPrivateScriptOnly;
45 [ImplementedInPrivateScript] void dispatchDocumentOnload(Document document);