1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 A package of routines shared by the XUL content code.
12 #ifndef nsXULContentUtils_h__
13 #define nsXULContentUtils_h__
15 #include "nsISupports.h"
20 namespace mozilla::dom
{
23 namespace mozilla::intl
{
27 class nsXULContentUtils
{
29 const static mozilla::intl::Collator
* gCollator
;
31 static bool gDisableXULCache
;
33 static int DisableXULCacheChangedCallback(const char* aPrefName
,
37 static nsresult
Finish();
39 static nsresult
FindChildByTag(nsIContent
* aElement
, int32_t aNameSpaceID
,
40 nsAtom
* aTag
, mozilla::dom::Element
** aResult
);
42 static const mozilla::intl::Collator
* GetCollator();
45 #endif // nsXULContentUtils_h__