michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIAccessibleEvent.idl" michael@0: michael@0: /** michael@0: * Fired when an accessible's text changes. michael@0: */ michael@0: [scriptable, builtinclass, uuid(21e0f8bd-5638-4964-870b-3c8e944ac4c4)] michael@0: interface nsIAccessibleTextChangeEvent : nsIAccessibleEvent michael@0: { michael@0: /** michael@0: * Returns offset of changed text in accessible. michael@0: */ michael@0: readonly attribute long start; michael@0: michael@0: /** michael@0: * Returns length of changed text. michael@0: */ michael@0: readonly attribute unsigned long length; michael@0: michael@0: /** michael@0: * Returns true if text was inserted, otherwise false. michael@0: */ michael@0: readonly attribute boolean isInserted; michael@0: michael@0: /** michael@0: * The inserted or removed text michael@0: */ michael@0: readonly attribute DOMString modifiedText; michael@0: };