2013-03-26 15:45:45 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
2016-11-16 23:16:22 +03:00
|
|
|
* https://w3c.github.io/uievents/#interface-compositionevent
|
2013-03-26 15:45:45 +04:00
|
|
|
*
|
|
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2016-11-16 23:16:22 +03:00
|
|
|
[Constructor(DOMString type, optional CompositionEventInit eventInitDict)]
|
2013-03-26 15:45:45 +04:00
|
|
|
interface CompositionEvent : UIEvent
|
|
|
|
{
|
|
|
|
readonly attribute DOMString? data;
|
2016-11-16 23:16:22 +03:00
|
|
|
// locale is currently non-standard
|
2013-03-26 15:45:45 +04:00
|
|
|
readonly attribute DOMString locale;
|
2016-07-26 13:09:07 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* ranges is trying to expose TextRangeArray in Gecko so a
|
|
|
|
* js-plugin couble be able to know the clauses information
|
|
|
|
*/
|
|
|
|
[ChromeOnly,Cached,Pure]
|
|
|
|
readonly attribute sequence<TextClause> ranges;
|
2013-03-26 15:45:45 +04:00
|
|
|
};
|
|
|
|
|
2016-11-16 23:16:22 +03:00
|
|
|
dictionary CompositionEventInit : UIEventInit {
|
|
|
|
DOMString data = "";
|
|
|
|
};
|
|
|
|
|
2013-03-26 15:45:45 +04:00
|
|
|
partial interface CompositionEvent
|
|
|
|
{
|
|
|
|
void initCompositionEvent(DOMString typeArg,
|
|
|
|
boolean canBubbleArg,
|
|
|
|
boolean cancelableArg,
|
2014-10-29 22:06:20 +03:00
|
|
|
Window? viewArg,
|
2013-03-26 15:45:45 +04:00
|
|
|
DOMString? dataArg,
|
|
|
|
DOMString localeArg);
|
|
|
|
};
|