tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CompositionEvent.webidl (1318B)


      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 [Exposed=Window]
     13 interface CompositionEvent : UIEvent
     14 {
     15  constructor(DOMString type, optional CompositionEventInit eventInitDict = {});
     16 
     17  readonly attribute DOMString? data;
     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 
     27 dictionary CompositionEventInit : UIEventInit {
     28  DOMString data = "";
     29 };
     30 
     31 partial interface CompositionEvent
     32 {
     33  undefined initCompositionEvent(DOMString typeArg,
     34                                 optional boolean canBubbleArg = false,
     35                                 optional boolean cancelableArg = false,
     36                                 optional Window? viewArg = null,
     37                                 optional DOMString? dataArg = null);
     38 };