tor-browser

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

CSSMathValue.h (1054B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      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 LAYOUT_STYLE_TYPEDOM_CSSMATHVALUE_H_
      8 #define LAYOUT_STYLE_TYPEDOM_CSSMATHVALUE_H_
      9 
     10 #include "mozilla/dom/CSSNumericValue.h"
     11 
     12 template <class T>
     13 class nsCOMPtr;
     14 class nsISupports;
     15 
     16 namespace mozilla {
     17 
     18 namespace dom {
     19 
     20 enum class CSSMathOperator : uint8_t;
     21 
     22 class CSSMathValue : public CSSNumericValue {
     23 public:
     24  explicit CSSMathValue(nsCOMPtr<nsISupports> aParent);
     25 
     26  CSSMathValue(nsCOMPtr<nsISupports> aParent, ValueType aValueType);
     27 
     28  // start of CSSMathValue Web IDL declarations
     29 
     30  CSSMathOperator Operator() const;
     31 
     32  // end of CSSMathValue Web IDL declarations
     33 
     34 protected:
     35  virtual ~CSSMathValue() = default;
     36 };
     37 
     38 }  // namespace dom
     39 }  // namespace mozilla
     40 
     41 #endif  // LAYOUT_STYLE_TYPEDOM_CSSMATHVALUE_H_