parser/html/nsHtml5Atoms.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/html/nsHtml5Atoms.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     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 nsHtml5Atoms_h
    1.16 +#define nsHtml5Atoms_h
    1.17 +
    1.18 +#include "nsIAtom.h"
    1.19 +
    1.20 +class nsHtml5Atoms {
    1.21 +  public:
    1.22 +    static void AddRefAtoms();
    1.23 +    /* Declare all atoms
    1.24 +       The atom names and values are stored in nsGkAtomList.h and
    1.25 +       are brought to you by the magic of C preprocessing
    1.26 +       Add new atoms to nsGkAtomList and all support logic will be auto-generated
    1.27 +     */
    1.28 +#define HTML5_ATOM(_name, _value) static nsIAtom* _name;
    1.29 +#include "nsHtml5AtomList.h"
    1.30 +#undef HTML5_ATOM
    1.31 +};
    1.32 +
    1.33 +#endif /* nsHtml5Atoms_h */

mercurial