Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
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 nsGkAtoms_h___ |
michael@0 | 13 | #define nsGkAtoms_h___ |
michael@0 | 14 | |
michael@0 | 15 | class nsIAtom; |
michael@0 | 16 | |
michael@0 | 17 | class nsGkAtoms { |
michael@0 | 18 | public: |
michael@0 | 19 | |
michael@0 | 20 | static void AddRefAtoms(); |
michael@0 | 21 | |
michael@0 | 22 | /* Declare all atoms |
michael@0 | 23 | |
michael@0 | 24 | The atom names and values are stored in nsGkAtomList.h and |
michael@0 | 25 | are brought to you by the magic of C preprocessing |
michael@0 | 26 | |
michael@0 | 27 | Add new atoms to nsGkAtomList and all support logic will be auto-generated |
michael@0 | 28 | */ |
michael@0 | 29 | #define GK_ATOM(_name, _value) static nsIAtom* _name; |
michael@0 | 30 | #include "nsGkAtomList.h" |
michael@0 | 31 | #undef GK_ATOM |
michael@0 | 32 | }; |
michael@0 | 33 | |
michael@0 | 34 | #endif /* nsGkAtoms_h___ */ |