"Fossies" - the Fresh Open Source Software Archive

Member "firefox-69.0.1/dom/html/nsIImageDocument.idl" (17 Sep 2019, 1539 Bytes) of package /linux/www/firefox-69.0.1.source.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) IDL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
    2 /* This Source Code Form is subject to the terms of the Mozilla Public
    3  * License, v. 2.0. If a copy of the MPL was not distributed with this
    4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    5 
    6 #include "nsISupports.idl"
    7 
    8 /**
    9  * @status UNDER_DEVELOPMENT
   10  */
   11 
   12 interface imgIRequest;
   13 
   14 [scriptable, uuid(87c27f98-37dc-4b64-a8cd-92003624bcee)]
   15 interface nsIImageDocument : nsISupports {
   16 
   17   /* Whether the image is overflowing visible area. */
   18   readonly attribute boolean imageIsOverflowing;
   19 
   20   /* Whether the image has been resized to fit visible area. */
   21   readonly attribute boolean imageIsResized;
   22 
   23   /* The image request being displayed in the content area */
   24   readonly attribute imgIRequest imageRequest;
   25 
   26   /* Resize the image to fit visible area. */
   27   [binaryname(DOMShrinkToFit)]
   28   void shrinkToFit();
   29 
   30   /* Restore image original size. */
   31   [binaryname(DOMRestoreImage)]
   32   void restoreImage();
   33 
   34   /* Restore the image, trying to keep a certain pixel in the same position.
   35    * The coordinate system is that of the shrunken image.
   36    */
   37   [binaryname(DOMRestoreImageTo)]
   38   void restoreImageTo(in long x, in long y);
   39 
   40   /* A helper method for switching between states.
   41    * The switching logic is as follows. If the image has been resized
   42    * restore image original size, otherwise if the image is overflowing
   43    * current visible area resize the image to fit the area.
   44    */
   45   [binaryname(DOMToggleImageSize)]
   46   void toggleImageSize();
   47 };