tor-browser

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

StyleInfo.h (929B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set expandtab shiftwidth=2 tabstop=2: */
      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_a11y_style_h_
      8 #define _mozilla_a11y_style_h_
      9 
     10 #include "mozilla/gfx/Types.h"
     11 #include "mozilla/AlreadyAddRefed.h"
     12 #include "nsStringFwd.h"
     13 #include "nsColor.h"
     14 
     15 class nsAtom;
     16 
     17 namespace mozilla {
     18 
     19 enum class StyleTextDecorationStyle : uint8_t;
     20 
     21 namespace dom {
     22 class Element;
     23 }  // namespace dom
     24 namespace a11y {
     25 
     26 class StyleInfo {
     27 public:
     28  static void FormatColor(const nscolor& aValue, nsAString& aFormattedValue);
     29  static already_AddRefed<nsAtom> TextDecorationStyleToAtom(
     30      StyleTextDecorationStyle aValue);
     31 };
     32 
     33 }  // namespace a11y
     34 }  // namespace mozilla
     35 
     36 #endif