Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; 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 | /* |
michael@0 | 7 | * This class wraps up the creation (and destruction) of the standard |
michael@0 | 8 | * set of atoms used by gklayout; the atoms are created when gklayout |
michael@0 | 9 | * is loaded and they are destroyed when gklayout is unloaded. |
michael@0 | 10 | */ |
michael@0 | 11 | |
michael@0 | 12 | #ifndef nsHtml5Atoms_h |
michael@0 | 13 | #define nsHtml5Atoms_h |
michael@0 | 14 | |
michael@0 | 15 | #include "nsIAtom.h" |
michael@0 | 16 | |
michael@0 | 17 | class nsHtml5Atoms { |
michael@0 | 18 | public: |
michael@0 | 19 | static void AddRefAtoms(); |
michael@0 | 20 | /* Declare all atoms |
michael@0 | 21 | The atom names and values are stored in nsGkAtomList.h and |
michael@0 | 22 | are brought to you by the magic of C preprocessing |
michael@0 | 23 | Add new atoms to nsGkAtomList and all support logic will be auto-generated |
michael@0 | 24 | */ |
michael@0 | 25 | #define HTML5_ATOM(_name, _value) static nsIAtom* _name; |
michael@0 | 26 | #include "nsHtml5AtomList.h" |
michael@0 | 27 | #undef HTML5_ATOM |
michael@0 | 28 | }; |
michael@0 | 29 | |
michael@0 | 30 | #endif /* nsHtml5Atoms_h */ |