layout/style/nsCSSKeywords.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 /* keywords used within CSS property values */
     8 #ifndef nsCSSKeywords_h___
     9 #define nsCSSKeywords_h___
    11 #include "nsStringFwd.h"
    13 /*
    14    Declare the enum list using the magic of preprocessing
    15    enum values are "eCSSKeyword_foo" (where foo is the keyword)
    17    To change the list of keywords, see nsCSSKeywordList.h
    19  */
    20 #define CSS_KEY(_name,_id) eCSSKeyword_##_id,
    21 enum nsCSSKeyword {
    22   eCSSKeyword_UNKNOWN = -1,
    23 #include "nsCSSKeywordList.h"
    24   eCSSKeyword_COUNT
    25 };
    26 #undef CSS_KEY
    29 class nsCSSKeywords {
    30 public:
    31   static void AddRefTable(void);
    32   static void ReleaseTable(void);
    34   // Given a keyword string, return the enum value
    35   static nsCSSKeyword LookupKeyword(const nsACString& aKeyword);
    36   static nsCSSKeyword LookupKeyword(const nsAString& aKeyword);
    38   // Given a keyword enum, get the string value
    39   static const nsAFlatCString& GetStringValue(nsCSSKeyword aKeyword);
    40 };
    42 #endif /* nsCSSKeywords_h___ */

mercurial