TestJSImplInheritanceGen.webidl (1362B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 */ 6 7 [Exposed=Window, JSImplementation="@mozilla.org/test-js-impl-interface2;1"] 8 interface TestJSImplInterface2 : TestCImplementedInterface { 9 [Throws] 10 constructor(); 11 }; 12 13 [Exposed=Window, JSImplementation="@mozilla.org/test-js-impl-interface3;1"] 14 interface TestJSImplInterface3 : TestCImplementedInterface2 { 15 [Throws] 16 constructor(); 17 }; 18 19 // Important: TestJSImplInterface5 needs to come before TestJSImplInterface6 in 20 // this file to test what it's trying to test. 21 [Exposed=Window, JSImplementation="@mozilla.org/test-js-impl-interface5;1"] 22 interface TestJSImplInterface5 : TestJSImplInterface6 { 23 [Throws] 24 constructor(); 25 }; 26 27 // Important: TestJSImplInterface6 needs to come after TestJSImplInterface3 in 28 // this file to test what it's trying to test. 29 [Exposed=Window, JSImplementation="@mozilla.org/test-js-impl-interface6;1"] 30 interface TestJSImplInterface6 : TestJSImplInterface3 { 31 [Throws] 32 constructor(); 33 }; 34 35 [Exposed=Window, JSImplementation="@mozilla.org/test-js-impl-interface4;1"] 36 interface TestJSImplInterface4 : EventTarget { 37 [Throws] 38 constructor(); 39 };