accessible/public/nsIAccessibleEditableText.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #include "nsISupports.idl"
michael@0 8
michael@0 9 [scriptable, uuid(93d0ba57-0d20-49d1-aede-8fde6699855d)]
michael@0 10 interface nsIAccessibleEditableText : nsISupports
michael@0 11 {
michael@0 12 /**
michael@0 13 * Replaces the text represented by this object by the given text.
michael@0 14 */
michael@0 15 void setTextContents (in AString text);
michael@0 16
michael@0 17 /**
michael@0 18 * Inserts text at the specified position.
michael@0 19 *
michael@0 20 * @param text - text that is inserted.
michael@0 21 * @param position - index at which to insert the text.
michael@0 22 */
michael@0 23 [binaryname(ScriptableInsertText)]
michael@0 24 void insertText(in AString text, in long position);
michael@0 25
michael@0 26 /**
michael@0 27 * Copies the text range into the clipboard.
michael@0 28 *
michael@0 29 * @param startPos - start index of the text to moved into the clipboard.
michael@0 30 * @param endPos - end index of the text to moved into the clipboard.
michael@0 31 */
michael@0 32 [binaryname(ScriptableCopyText)]
michael@0 33 void copyText(in long startPos, in long endPos);
michael@0 34
michael@0 35 /**
michael@0 36 * Deletes a range of text and copies it to the clipboard.
michael@0 37 *
michael@0 38 * @param startPos - start index of the text to be deleted.
michael@0 39 * @param endOffset - end index of the text to be deleted.
michael@0 40 */
michael@0 41 [binaryname(ScriptableCutText)]
michael@0 42 void cutText(in long startPos, in long endPos);
michael@0 43
michael@0 44 /**
michael@0 45 * Deletes a range of text.
michael@0 46 *
michael@0 47 * @param startPos - start index of the text to be deleted.
michael@0 48 * @param endPos - end index of the text to be deleted.
michael@0 49 */
michael@0 50 [binaryname(ScriptableDeleteText)]
michael@0 51 void deleteText(in long startPos, in long endPos);
michael@0 52
michael@0 53 /**
michael@0 54 * Pastes text from the clipboard.
michael@0 55 *
michael@0 56 * @param position - index at which to insert the text from the system
michael@0 57 * clipboard into the text represented by this object.
michael@0 58 */
michael@0 59 [binaryname(ScriptablePasteText)]
michael@0 60 void pasteText(in long position);
michael@0 61 };

mercurial