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.
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 interface nsITreeColumns;
8 interface nsIDOMElement;
9 interface nsIAtom;
11 [scriptable, uuid(ae835ecf-6b32-4660-9b43-8a270df56e02)]
12 interface nsITreeColumn : nsISupports
13 {
14 readonly attribute nsIDOMElement element;
16 readonly attribute nsITreeColumns columns;
18 readonly attribute long x;
19 readonly attribute long width;
21 readonly attribute AString id;
22 [noscript] void getIdConst([shared] out wstring idConst);
23 [noscript] readonly attribute nsIAtom atom;
25 readonly attribute long index;
27 readonly attribute boolean primary;
28 readonly attribute boolean cycler;
29 readonly attribute boolean editable;
30 readonly attribute boolean selectable;
32 const short TYPE_TEXT = 1;
33 const short TYPE_CHECKBOX = 2;
34 const short TYPE_PROGRESSMETER = 3;
35 readonly attribute short type;
37 nsITreeColumn getNext();
38 nsITreeColumn getPrevious();
40 void invalidate();
41 };
43 interface nsITreeBoxObject;
45 [scriptable, uuid(f8a8d6b4-6788-438d-9009-7142798767ab)]
46 interface nsITreeColumns : nsISupports
47 {
48 /**
49 * The tree widget for these columns.
50 */
51 readonly attribute nsITreeBoxObject tree;
53 /**
54 * The number of columns.
55 */
56 readonly attribute long count;
58 /**
59 * An alias for count (for the benefit of scripts which treat this as an
60 * array).
61 */
62 readonly attribute long length;
64 /**
65 * Get the first/last column.
66 */
67 nsITreeColumn getFirstColumn();
68 nsITreeColumn getLastColumn();
70 /**
71 * Attribute based column getters.
72 */
73 nsITreeColumn getPrimaryColumn();
74 nsITreeColumn getSortedColumn();
75 nsITreeColumn getKeyColumn();
77 /**
78 * Get the column for the given element.
79 */
80 nsITreeColumn getColumnFor(in nsIDOMElement element);
82 /**
83 * Parametric column getters.
84 */
85 nsITreeColumn getNamedColumn(in AString id);
86 nsITreeColumn getColumnAt(in long index);
88 /**
89 * This method is called whenever a treecol is added or removed and
90 * the column cache needs to be rebuilt.
91 */
92 void invalidateColumns();
94 void restoreNaturalOrder();
95 };