ViewTransition.webidl (1148B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/ 4 * 5 * https://drafts.csswg.org/css-view-transitions-2/#the-domtransition-interface 6 * https://drafts.csswg.org/css-view-transitions-2/#viewtransitiontypeset 7 */ 8 9 [Exposed=Window, Pref="dom.viewTransitions.enabled"] 10 interface ViewTransitionTypeSet { 11 setlike<DOMString>; 12 }; 13 14 // Setlike methods that need to be overridden to keep the contents in sync with 15 // the C++ version, see bug 1799890 and bug 1822927. 16 partial interface ViewTransitionTypeSet { 17 [Throws] 18 ViewTransitionTypeSet add(DOMString type); 19 [Throws] 20 undefined clear(); 21 [Throws] 22 boolean delete(DOMString type); 23 }; 24 25 [Exposed=Window, Pref="dom.viewTransitions.enabled"] 26 interface ViewTransition { 27 [Throws] readonly attribute Promise<undefined> updateCallbackDone; 28 [Throws] readonly attribute Promise<undefined> ready; 29 [Throws] readonly attribute Promise<undefined> finished; 30 undefined skipTransition(); 31 [SameObject] readonly attribute ViewTransitionTypeSet types; 32 };