Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "nsISupports.idl" |
michael@0 | 8 | |
michael@0 | 9 | [scriptable, uuid(0DDF9E1C-1DD2-11B2-A183-908A08AA75AE)] |
michael@0 | 10 | interface nsISelectionDisplay : nsISupports |
michael@0 | 11 | { |
michael@0 | 12 | const short DISPLAY_TEXT = 1; //display text selected. |
michael@0 | 13 | const short DISPLAY_IMAGES = 2; //show images selected |
michael@0 | 14 | const short DISPLAY_FRAMES = 4; //display hrules ect. |
michael@0 | 15 | const short DISPLAY_ALL = 7; //display all. used for isEditor as well |
michael@0 | 16 | |
michael@0 | 17 | /* |
michael@0 | 18 | SetSelectionFlags used to set whether you want to see HRULES/IMAGES with border. |
michael@0 | 19 | also used to tell if the presshell is an editor right now. this should change |
michael@0 | 20 | |
michael@0 | 21 | @param aToggle -either DISPLAY_(TEXT,IMAGES,FRAMES,ALL) |
michael@0 | 22 | This will tell the rendering engine to draw the different |
michael@0 | 23 | selection types. |
michael@0 | 24 | |
michael@0 | 25 | */ |
michael@0 | 26 | void setSelectionFlags(in short toggle); |
michael@0 | 27 | |
michael@0 | 28 | /* |
michael@0 | 29 | GetSelectionFlags used to get whether you want to see HRULES/IMAGES with border. |
michael@0 | 30 | also used to tell if the presshell is an editor right now. this should change |
michael@0 | 31 | |
michael@0 | 32 | @param short *aReturn - This will be filled with DISPLAY_(TEXT,IMAGE,FRAMES,ALL) |
michael@0 | 33 | bit flags. |
michael@0 | 34 | */ |
michael@0 | 35 | short getSelectionFlags(); |
michael@0 | 36 | |
michael@0 | 37 | }; |