nsIAccessibleCaretMoveEvent.idl (894B)
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/. */ 5 6 #include "nsIAccessibleEvent.idl" 7 8 /** 9 * Fired when the caret changes position in text. 10 */ 11 [scriptable, builtinclass, uuid(ed1982e4-57d7-41a8-8cd8-9023f809383e)] 12 interface nsIAccessibleCaretMoveEvent: nsIAccessibleEvent 13 { 14 /** 15 * Return caret offset. 16 */ 17 readonly attribute long caretOffset; 18 19 /** 20 * Return true if there is no selection. 21 */ 22 readonly attribute boolean isSelectionCollapsed; 23 24 /** 25 * Return true if the caret is at the end of a line. 26 */ 27 readonly attribute boolean isAtEndOfLine; 28 29 /** 30 * Return caret move granularity. 31 */ 32 readonly attribute long granularity; 33 };