content/base/public/nsISelectionDisplay.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: 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/. */
     7 #include "nsISupports.idl"
     9 [scriptable, uuid(0DDF9E1C-1DD2-11B2-A183-908A08AA75AE)]
    10 interface nsISelectionDisplay : nsISupports
    11 {
    12    const short DISPLAY_TEXT = 1;   //display text selected.
    13    const short DISPLAY_IMAGES = 2; //show images selected
    14    const short DISPLAY_FRAMES = 4; //display hrules ect.
    15    const short DISPLAY_ALL = 7; //display all. used for isEditor as well
    17    /*
    18    SetSelectionFlags used to set whether you want to see HRULES/IMAGES with border.
    19     also used to tell if the presshell is an editor right now. this should change
    21     @param aToggle -either DISPLAY_(TEXT,IMAGES,FRAMES,ALL)
    22                     This will tell the rendering engine to draw the different
    23                     selection types. 
    25    */
    26     void setSelectionFlags(in short toggle);
    28    /*
    29    GetSelectionFlags used to get whether you want to see HRULES/IMAGES with border.
    30     also used to tell if the presshell is an editor right now. this should change
    32     @param short *aReturn - This will be filled with DISPLAY_(TEXT,IMAGE,FRAMES,ALL) 
    33                             bit flags.
    34    */
    35     short getSelectionFlags();
    37 };

mercurial