Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / dom / chrome-webidl / TreeColumns.webidl
blob417669aa1fc0188c1f5e298201076389154dc183
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 [ChromeOnly,
6  Exposed=Window]
7 interface TreeColumns {
8   /**
9    * The tree widget for these columns.
10    */
11   readonly attribute XULTreeElement? tree;
13   /**
14    * The number of columns.
15    */
16   readonly attribute unsigned long count;
18   /**
19    * An alias for count (for the benefit of scripts which treat this as an
20    * array).
21    */
22   readonly attribute unsigned long length;
24   /**
25    * Get the first/last column.
26    */
27   TreeColumn? getFirstColumn();
28   TreeColumn? getLastColumn();
30   /**
31    * Attribute based column getters.
32    */
33   TreeColumn? getPrimaryColumn();
34   TreeColumn? getSortedColumn();
35   TreeColumn? getKeyColumn();
37   /**
38    * Get the column for the given element.
39    */
40   TreeColumn? getColumnFor(Element? element);
42   /**
43    * Parametric column getters.
44    */
45   getter TreeColumn? getNamedColumn(DOMString name);
46   getter TreeColumn? getColumnAt(unsigned long index);
48   /**
49    * This method is called whenever a treecol is added or removed and
50    * the column cache needs to be rebuilt.
51    */
52   undefined invalidateColumns();