tor-browser

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

CSSMathMax.h (1459B)


      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_CSSMATHMAX_H_
      8 #define LAYOUT_STYLE_TYPEDOM_CSSMATHMAX_H_
      9 
     10 #include "js/TypeDecls.h"
     11 #include "mozilla/dom/CSSMathValue.h"
     12 #include "mozilla/dom/CSSNumericArrayBindingFwd.h"
     13 #include "mozilla/dom/CSSNumericValueBindingFwd.h"
     14 
     15 template <class T>
     16 struct already_AddRefed;
     17 template <class T>
     18 class nsCOMPtr;
     19 class nsISupports;
     20 
     21 namespace mozilla {
     22 
     23 class ErrorResult;
     24 
     25 namespace dom {
     26 
     27 class GlobalObject;
     28 template <typename T>
     29 class Sequence;
     30 
     31 class CSSMathMax final : public CSSMathValue {
     32 public:
     33  explicit CSSMathMax(nsCOMPtr<nsISupports> aParent);
     34 
     35  JSObject* WrapObject(JSContext* aCx,
     36                       JS::Handle<JSObject*> aGivenProto) override;
     37 
     38  // start of CSSMathMax Web IDL declarations
     39 
     40  static already_AddRefed<CSSMathMax> Constructor(
     41      const GlobalObject& aGlobal, const Sequence<OwningCSSNumberish>& aArgs,
     42      ErrorResult& aRv);
     43 
     44  CSSNumericArray* GetValues(ErrorResult& aRv) const;
     45 
     46  // end of CSSMathMax Web IDL declarations
     47 
     48 private:
     49  virtual ~CSSMathMax() = default;
     50 };
     51 
     52 }  // namespace dom
     53 }  // namespace mozilla
     54 
     55 #endif  // LAYOUT_STYLE_TYPEDOM_CSSMATHMAX_H_