content/html/document/public/nsIImageDocument.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     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/. */
     6 #include "nsISupports.idl"
     8 /**
     9  * @status UNDER_DEVELOPMENT
    10  */
    12 interface imgIRequest;
    14 [scriptable, uuid(87c27f98-37dc-4b64-a8cd-92003624bcee)]
    15 interface nsIImageDocument : nsISupports {
    17   /* Whether the pref for image resizing has been set. */
    18   readonly attribute boolean imageResizingEnabled;
    20   /* Whether the image is overflowing visible area. */
    21   readonly attribute boolean imageIsOverflowing;
    23   /* Whether the image has been resized to fit visible area. */
    24   readonly attribute boolean imageIsResized;
    26   /* The image request being displayed in the content area */
    27   readonly attribute imgIRequest imageRequest;
    29   /* Resize the image to fit visible area. */
    30   [binaryname(DOMShrinkToFit)]
    31   void shrinkToFit();
    33   /* Restore image original size. */
    34   [binaryname(DOMRestoreImage)]
    35   void restoreImage();
    37   /* Restore the image, trying to keep a certain pixel in the same position.
    38    * The coordinate system is that of the shrunken image.
    39    */
    40   [binaryname(DOMRestoreImageTo)]
    41   void restoreImageTo(in long x, in long y);
    43   /* A helper method for switching between states.
    44    * The switching logic is as follows. If the image has been resized
    45    * restore image original size, otherwise if the image is overflowing
    46    * current visible area resize the image to fit the area.
    47    */
    48   [binaryname(DOMToggleImageSize)]
    49   void toggleImageSize();
    50 };  

mercurial