Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 5 | |
michael@0 | 6 | #ifndef nsTreeUtils_h__ |
michael@0 | 7 | #define nsTreeUtils_h__ |
michael@0 | 8 | |
michael@0 | 9 | #include "nsError.h" |
michael@0 | 10 | #include "nsString.h" |
michael@0 | 11 | #include "nsTreeStyleCache.h" |
michael@0 | 12 | |
michael@0 | 13 | class nsIAtom; |
michael@0 | 14 | class nsIContent; |
michael@0 | 15 | |
michael@0 | 16 | class nsTreeUtils |
michael@0 | 17 | { |
michael@0 | 18 | public: |
michael@0 | 19 | /** |
michael@0 | 20 | * Parse a whitespace separated list of properties into an array |
michael@0 | 21 | * of atoms. |
michael@0 | 22 | */ |
michael@0 | 23 | static nsresult |
michael@0 | 24 | TokenizeProperties(const nsAString& aProperties, AtomArray & aPropertiesArray); |
michael@0 | 25 | |
michael@0 | 26 | static nsIContent* |
michael@0 | 27 | GetImmediateChild(nsIContent* aContainer, nsIAtom* aTag); |
michael@0 | 28 | |
michael@0 | 29 | static nsIContent* |
michael@0 | 30 | GetDescendantChild(nsIContent* aContainer, nsIAtom* aTag); |
michael@0 | 31 | |
michael@0 | 32 | static nsresult |
michael@0 | 33 | UpdateSortIndicators(nsIContent* aColumn, const nsAString& aDirection); |
michael@0 | 34 | |
michael@0 | 35 | static nsresult |
michael@0 | 36 | GetColumnIndex(nsIContent* aColumn, int32_t* aResult); |
michael@0 | 37 | }; |
michael@0 | 38 | |
michael@0 | 39 | #endif // nsTreeUtils_h__ |