accessible/public/nsIAccessibleEditableText.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/accessible/public/nsIAccessibleEditableText.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +
    1.12 +[scriptable, uuid(93d0ba57-0d20-49d1-aede-8fde6699855d)]
    1.13 +interface nsIAccessibleEditableText : nsISupports
    1.14 +{
    1.15 +  /**
    1.16 +   * Replaces the text represented by this object by the given text.
    1.17 +   */
    1.18 +  void setTextContents (in AString text);
    1.19 +
    1.20 +  /**
    1.21 +   * Inserts text at the specified position.
    1.22 +   *
    1.23 +   * @param text - text that is inserted.
    1.24 +   * @param position - index at which to insert the text.
    1.25 +   */
    1.26 +  [binaryname(ScriptableInsertText)]
    1.27 +  void insertText(in AString text, in long position);
    1.28 +
    1.29 +  /**
    1.30 +   * Copies the text range into the clipboard.
    1.31 +   *
    1.32 +   * @param startPos - start index of the text to moved into the clipboard.
    1.33 +   * @param endPos - end index of the text to moved into the clipboard.
    1.34 +   */
    1.35 +  [binaryname(ScriptableCopyText)]
    1.36 +  void copyText(in long startPos, in long endPos);
    1.37 +
    1.38 +  /**
    1.39 +   * Deletes a range of text and copies it to the clipboard.
    1.40 +   *
    1.41 +   * @param startPos - start index of the text to be deleted.
    1.42 +   * @param endOffset - end index of the text to be deleted.
    1.43 +   */
    1.44 +  [binaryname(ScriptableCutText)]
    1.45 +  void cutText(in long startPos, in long endPos);
    1.46 +
    1.47 +  /**
    1.48 +   * Deletes a range of text.
    1.49 +   *
    1.50 +   * @param startPos - start index of the text to be deleted.
    1.51 +   * @param endPos - end index of the text to be deleted.
    1.52 +   */
    1.53 +  [binaryname(ScriptableDeleteText)]
    1.54 +  void deleteText(in long startPos, in long endPos);
    1.55 +
    1.56 +  /**
    1.57 +   * Pastes text from the clipboard.
    1.58 +   *
    1.59 +   * @param position - index at which to insert the text from the system
    1.60 +   *                   clipboard into the text represented by this object.
    1.61 +   */
    1.62 +  [binaryname(ScriptablePasteText)]
    1.63 +  void pasteText(in long position);
    1.64 +};

mercurial