Bug 1788251 [wpt PR 35638] - Prerender2: allow referrer policy mismatches, a=testonly
[gecko.git] / accessible / interfaces / nsIAccessibleEditableText.idl
blob5fce44032c28270892d5c368c0dc5913c22ca3f3
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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, builtinclass, uuid(28915cca-3366-4034-ba1d-b7afb9b37639)]
10 interface nsIAccessibleEditableText : nsISupports
12 /**
13 * Replaces the text represented by this object by the given text.
15 void setTextContents (in AString text);
17 /**
18 * Inserts text at the specified position.
20 * @param text - text that is inserted.
21 * @param position - index at which to insert the text.
23 void insertText(in AString text, in long position);
25 /**
26 * Copies the text range into the clipboard.
28 * @param startPos - start index of the text to moved into the clipboard.
29 * @param endPos - end index of the text to moved into the clipboard.
31 void copyText(in long startPos, in long endPos);
33 /**
34 * Deletes a range of text and copies it to the clipboard.
36 * @param startPos - start index of the text to be deleted.
37 * @param endOffset - end index of the text to be deleted.
39 void cutText(in long startPos, in long endPos);
41 /**
42 * Deletes a range of text.
44 * @param startPos - start index of the text to be deleted.
45 * @param endPos - end index of the text to be deleted.
47 void deleteText(in long startPos, in long endPos);
49 /**
50 * Pastes text from the clipboard.
52 * @param position - index at which to insert the text from the system
53 * clipboard into the text represented by this object.
55 [can_run_script]
56 void pasteText(in long position);