tor-browser

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

CSSEnabledState.h (1292B)


      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 /*
      8 * enum for whether a CSS feature (property, pseudo-class, etc.) is
      9 * enabled in a specific context
     10 */
     11 
     12 #ifndef mozilla_CSSEnabledState_h
     13 #define mozilla_CSSEnabledState_h
     14 
     15 #include "mozilla/TypedEnumBits.h"
     16 
     17 namespace mozilla {
     18 
     19 enum class CSSEnabledState {
     20  // The default CSSEnabledState: only enable what's enabled for all
     21  // content, given the current values of preferences.
     22  ForAllContent = 0,
     23  // Enable features available in UA sheets.
     24  InUASheets = 0x01,
     25  // Enable features available in chrome code.
     26  InChrome = 0x02,
     27  // Special value to unconditionally enable everything. This implies
     28  // all the bits above, but is strictly more than just their OR-ed
     29  // union. This just skips any test so a feature will be enabled even
     30  // if it would have been disabled with all the bits above set.
     31  IgnoreEnabledState = 0xff
     32 };
     33 
     34 MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(CSSEnabledState)
     35 
     36 }  // namespace mozilla
     37 
     38 #endif  // mozilla_CSSEnabledState_h