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: * An interface for virtual cursor changed events. michael@0: * Passes previous cursor position and text offsets. michael@0: */ michael@0: [scriptable, builtinclass, uuid(370e8b9b-2bbc-4bff-a9c7-16ddc54aea21)] michael@0: interface nsIAccessibleVirtualCursorChangeEvent : nsIAccessibleEvent michael@0: { michael@0: /** michael@0: * Previous object pointed at by virtual cursor. null if none. michael@0: */ michael@0: readonly attribute nsIAccessible oldAccessible; michael@0: michael@0: /** michael@0: * Previous start offset of pivot. -1 if none. michael@0: */ michael@0: readonly attribute long oldStartOffset; michael@0: michael@0: /** michael@0: * Previous end offset of pivot. -1 if none. michael@0: */ michael@0: readonly attribute long oldEndOffset; michael@0: michael@0: /** michael@0: * Reason for virtual cursor move. michael@0: */ michael@0: readonly attribute short reason; michael@0: };