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 * Fired when the caret changes position in text.
11 [scriptable
, builtinclass
, uuid(ed1982e4
-57d7
-41a8
-8cd8
-9023f809383e
)]
12 interface nsIAccessibleCaretMoveEvent
: nsIAccessibleEvent
15 * Return caret offset.
17 readonly attribute
long caretOffset
;
20 * Return true if there is no selection.
22 readonly attribute bool isSelectionCollapsed
;
25 * Return true if the caret is at the end of a line.
27 readonly attribute bool isAtEndOfLine
;
30 * Return caret move granularity.
32 readonly attribute
long granularity
;