2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2017-12-19 17:11:06 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
A package of routines shared by the XUL content code.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsXULContentUtils_h__
|
|
|
|
#define nsXULContentUtils_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
class nsAtom;
|
|
|
|
class nsIContent;
|
|
|
|
|
2021-08-10 19:01:17 +03:00
|
|
|
namespace mozilla::dom {
|
2017-12-19 17:11:06 +03:00
|
|
|
class Element;
|
|
|
|
}
|
2021-08-10 19:01:17 +03:00
|
|
|
namespace mozilla::intl {
|
|
|
|
class Collator;
|
|
|
|
}
|
2017-12-19 17:11:06 +03:00
|
|
|
|
|
|
|
class nsXULContentUtils {
|
|
|
|
protected:
|
2021-08-10 19:01:17 +03:00
|
|
|
const static mozilla::intl::Collator* gCollator;
|
2017-12-19 17:11:06 +03:00
|
|
|
|
|
|
|
static bool gDisableXULCache;
|
|
|
|
|
|
|
|
static int DisableXULCacheChangedCallback(const char* aPrefName,
|
|
|
|
void* aClosure);
|
|
|
|
|
|
|
|
public:
|
|
|
|
static nsresult Finish();
|
|
|
|
|
|
|
|
static nsresult FindChildByTag(nsIContent* aElement, int32_t aNameSpaceID,
|
|
|
|
nsAtom* aTag, mozilla::dom::Element** aResult);
|
|
|
|
|
2021-08-10 19:01:17 +03:00
|
|
|
static const mozilla::intl::Collator* GetCollator();
|
2017-12-19 17:11:06 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsXULContentUtils_h__
|