tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

NameSpaceConstants.h (1272B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozilla_dom_NameSpaceConstants_h__
      8 #define mozilla_dom_NameSpaceConstants_h__
      9 
     10 #include <stdint.h>
     11 
     12 #define kNameSpaceID_Unknown -1
     13 // 0 is special at C++, so use a static const int32_t for
     14 // kNameSpaceID_None to keep if from being cast to pointers
     15 // Note that the XBL cache assumes (and asserts) that it can treat a
     16 // single-byte value higher than kNameSpaceID_LastBuiltin specially.
     17 static const int32_t kNameSpaceID_None = 0;
     18 #define kNameSpaceID_XMLNS \
     19  1  // not really a namespace, but it needs to play the game
     20 #define kNameSpaceID_XML 2
     21 #define kNameSpaceID_XHTML 3
     22 #define kNameSpaceID_XLink 4
     23 #define kNameSpaceID_XSLT 5
     24 #define kNameSpaceID_MathML 6
     25 #define kNameSpaceID_RDF 7
     26 #define kNameSpaceID_XUL 8
     27 #define kNameSpaceID_SVG 9
     28 #define kNameSpaceID_disabled_MathML 10
     29 #define kNameSpaceID_disabled_SVG 11
     30 #define kNameSpaceID_LastBuiltin 11  // last 'built-in' namespace
     31 
     32 #endif  // mozilla_dom_NameSpaceConstants_h__