1 /* -*- Mode: C++; 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
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include
"nsIAccessibleEvent.idl"
9 * An interface for virtual cursor changed events.
10 * Passes previous cursor position and text offsets.
12 [scriptable
, builtinclass
, uuid(a58693b1
-009e-4cc9
-ae93
-9c7d8f85cfdf
)]
13 interface nsIAccessibleVirtualCursorChangeEvent
: nsIAccessibleEvent
16 * Previous object pointed at by virtual cursor, null if none.
18 readonly attribute nsIAccessible oldAccessible
;
21 * Previous start offset of pivot, otherwise -1.
23 readonly attribute
long oldStartOffset
;
26 * Previous end offset of pivot, otherwise -1.
28 readonly attribute
long oldEndOffset
;
31 * New object pointed at by virtual cursor, null if none.
33 readonly attribute nsIAccessible newAccessible
;
36 * New start offset of pivot, otherwise -1.
38 readonly attribute
long newStartOffset
;
41 * New end offset of pivot, otherwise -1.
43 readonly attribute
long newEndOffset
;
46 * Reason for virtual cursor move.
48 readonly attribute
short reason
;
51 * Text boundary type for movement, NO_BOUNDARY if none.
53 readonly attribute
short boundaryType
;