1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/src/nsGkAtoms.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +/* 1.10 + * This class wraps up the creation (and destruction) of the standard 1.11 + * set of atoms used by gklayout; the atoms are created when gklayout 1.12 + * is loaded and they are destroyed when gklayout is unloaded. 1.13 + */ 1.14 + 1.15 +#ifndef nsGkAtoms_h___ 1.16 +#define nsGkAtoms_h___ 1.17 + 1.18 +class nsIAtom; 1.19 + 1.20 +class nsGkAtoms { 1.21 +public: 1.22 + 1.23 + static void AddRefAtoms(); 1.24 + 1.25 + /* Declare all atoms 1.26 + 1.27 + The atom names and values are stored in nsGkAtomList.h and 1.28 + are brought to you by the magic of C preprocessing 1.29 + 1.30 + Add new atoms to nsGkAtomList and all support logic will be auto-generated 1.31 + */ 1.32 +#define GK_ATOM(_name, _value) static nsIAtom* _name; 1.33 +#include "nsGkAtomList.h" 1.34 +#undef GK_ATOM 1.35 +}; 1.36 + 1.37 +#endif /* nsGkAtoms_h___ */