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 * https://w3c.github.io/uievents/#interface-compositionevent 7 * 8 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C 9 * liability, trademark and document use rules apply. 10 */ 11 12[Constructor(DOMString type, optional CompositionEventInit eventInitDict)] 13interface CompositionEvent : UIEvent 14{ 15 readonly attribute DOMString? data; 16 // locale is currently non-standard 17 readonly attribute DOMString locale; 18 19 /** 20 * ranges is trying to expose TextRangeArray in Gecko so a 21 * js-plugin couble be able to know the clauses information 22 */ 23 [ChromeOnly,Cached,Pure] 24 readonly attribute sequence<TextClause> ranges; 25}; 26 27dictionary CompositionEventInit : UIEventInit { 28 DOMString data = ""; 29}; 30 31partial interface CompositionEvent 32{ 33 void initCompositionEvent(DOMString typeArg, 34 optional boolean canBubbleArg = false, 35 optional boolean cancelableArg = false, 36 optional Window? viewArg = null, 37 optional DOMString? dataArg = null, 38 optional DOMString localeArg = ""); 39}; 40