accessible/public/nsIAccessibleImage.idl

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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 [scriptable, uuid(09086623-0f09-4310-ac56-c2cda7c29648)]
     9 interface nsIAccessibleImage : nsISupports
    10 {
    11   /**
    12    * Returns the coordinates of the image.
    13    *
    14    * @param coordType  specifies coordinates origin (for available constants
    15    *                   refer to nsIAccessibleCoordinateType)
    16    * @param x          the x coordinate
    17    * @param y          the y coordinate
    18    */
    19   void getImagePosition(in unsigned long coordType,
    20                         out long x,
    21                         out long y);
    23   /**
    24    * Returns the size of the image.
    25    *
    26    * @param width      the heigth
    27    * @param height     the width
    28    */
    29   void getImageSize(out long width, out long height);
    30 };

mercurial