1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/base/nsIContentViewerEdit.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; 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(AF13EA3A-D488-4308-B843-526E055AB943)] 1.13 +interface nsIContentViewerEdit : nsISupports 1.14 +{ 1.15 + void clearSelection(); 1.16 + void selectAll(); 1.17 + 1.18 + void copySelection(); 1.19 + readonly attribute boolean copyable; 1.20 + 1.21 + void copyLinkLocation(); 1.22 + readonly attribute boolean inLink; 1.23 + 1.24 + const long COPY_IMAGE_TEXT = 0x0001; 1.25 + const long COPY_IMAGE_HTML = 0x0002; 1.26 + const long COPY_IMAGE_DATA = 0x0004; 1.27 + const long COPY_IMAGE_ALL = -1; 1.28 + void copyImage(in long aCopyFlags); 1.29 + readonly attribute boolean inImage; 1.30 + 1.31 + AString getContents(in string aMimeType, in boolean aSelectionOnly); 1.32 + readonly attribute boolean canGetContents; 1.33 +};