tor-browser

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

BuiltInStyleSheets.h (1065B)


      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 /* an identifier for User Agent style sheets */
      8 
      9 #ifndef mozilla_BuiltInStyleSheets_h
     10 #define mozilla_BuiltInStyleSheets_h
     11 
     12 #include <stdint.h>
     13 
     14 #include "mozilla/TypedEnumBits.h"
     15 
     16 namespace mozilla {
     17 
     18 enum class BuiltInStyleSheetFlags : uint8_t {
     19  UA = 1,
     20  Author = 1 << 1,
     21  // By default sheets are shared, except xul.css which we only need in the
     22  // parent process.
     23  NotShared = 1 << 2,
     24 
     25  UAUnshared = (UA | NotShared),
     26 };
     27 
     28 MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(BuiltInStyleSheetFlags);
     29 
     30 enum class BuiltInStyleSheet : uint8_t {
     31 #define STYLE_SHEET(identifier_, url_, flags_) identifier_,
     32 #include "mozilla/BuiltInStyleSheetList.h"
     33 #undef STYLE_SHEET
     34  Count
     35 };
     36 
     37 }  // namespace mozilla
     38 
     39 #endif  // mozilla_BuiltInStyleSheets_h