Bug 1885489 - Part 5: Add SnapshotIterator::readInt32(). r=iain
[gecko.git] / docshell / base / nsIDocumentViewerEdit.idl
blob10ec203df70aa46be96583e4c7284708a5ec90ff
1 /* -*- Mode: IDL; tab-width: 4; 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 webidl Node;
11 [scriptable, uuid(e39a0c2a-5b31-4d57-a971-66ba07fab614)]
12 interface nsIDocumentViewerEdit : nsISupports
14 void clearSelection();
15 void selectAll();
17 void copySelection();
18 readonly attribute boolean copyable;
20 void copyLinkLocation();
21 readonly attribute boolean inLink;
23 const long COPY_IMAGE_TEXT = 0x0001;
24 const long COPY_IMAGE_HTML = 0x0002;
25 const long COPY_IMAGE_DATA = 0x0004;
26 const long COPY_IMAGE_ALL = -1;
27 void copyImage(in long aCopyFlags);
28 readonly attribute boolean inImage;
30 AString getContents(in string aMimeType, in boolean aSelectionOnly);
31 readonly attribute boolean canGetContents;
33 // Set the node that will be the subject of the editing commands above.
34 // Usually this will be the node that was context-clicked.
35 void setCommandNode(in Node aNode);