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

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

mercurial