tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsIDocumentViewerEdit.idl (1195B)


      1 /* -*- Mode: IDL; tab-width: 4; 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/. */
      6 
      7 #include "nsISupports.idl"
      8 
      9 webidl Node;
     10 
     11 [builtinclass, scriptable, uuid(e39a0c2a-5b31-4d57-a971-66ba07fab614)]
     12 interface nsIDocumentViewerEdit : nsISupports
     13 {
     14  void clearSelection();
     15  void selectAll();
     16 
     17  void copySelection();
     18  [infallible] readonly attribute boolean copyable;
     19 
     20  void copyLinkLocation();
     21  [infallible] readonly attribute boolean inLink;
     22 
     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  [infallible] readonly attribute boolean inImage;
     29 
     30  AString getContents(in string aMimeType, in boolean aSelectionOnly);
     31  [infallible] readonly attribute boolean canGetContents;
     32 
     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);
     36 };