michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * This class wraps up the creation (and destruction) of the standard michael@0: * set of atoms used by gklayout; the atoms are created when gklayout michael@0: * is loaded and they are destroyed when gklayout is unloaded. michael@0: */ michael@0: michael@0: #ifndef nsHtml5Atoms_h michael@0: #define nsHtml5Atoms_h michael@0: michael@0: #include "nsIAtom.h" michael@0: michael@0: class nsHtml5Atoms { michael@0: public: michael@0: static void AddRefAtoms(); michael@0: /* Declare all atoms michael@0: The atom names and values are stored in nsGkAtomList.h and michael@0: are brought to you by the magic of C preprocessing michael@0: Add new atoms to nsGkAtomList and all support logic will be auto-generated michael@0: */ michael@0: #define HTML5_ATOM(_name, _value) static nsIAtom* _name; michael@0: #include "nsHtml5AtomList.h" michael@0: #undef HTML5_ATOM michael@0: }; michael@0: michael@0: #endif /* nsHtml5Atoms_h */