tor-browser

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

CSSScale.h (1721B)


      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_CSSSCALE_H_
      8 #define LAYOUT_STYLE_TYPEDOM_CSSSCALE_H_
      9 
     10 #include "js/TypeDecls.h"
     11 #include "mozilla/dom/CSSNumericValueBindingFwd.h"
     12 #include "mozilla/dom/CSSTransformComponent.h"
     13 
     14 template <class T>
     15 struct already_AddRefed;
     16 template <class T>
     17 class nsCOMPtr;
     18 class nsISupports;
     19 
     20 namespace mozilla {
     21 
     22 class ErrorResult;
     23 
     24 namespace dom {
     25 
     26 class GlobalObject;
     27 template <typename T>
     28 class Optional;
     29 
     30 class CSSScale final : public CSSTransformComponent {
     31 public:
     32  explicit CSSScale(nsCOMPtr<nsISupports> aParent);
     33 
     34  JSObject* WrapObject(JSContext* aCx,
     35                       JS::Handle<JSObject*> aGivenProto) override;
     36 
     37  // start of CSSScale Web IDL declarations
     38 
     39  static already_AddRefed<CSSScale> Constructor(
     40      const GlobalObject& aGlobal, const CSSNumberish& aX,
     41      const CSSNumberish& aY, const Optional<CSSNumberish>& aZ,
     42      ErrorResult& aRv);
     43 
     44  void GetX(OwningCSSNumberish& aRetVal) const;
     45 
     46  void SetX(const CSSNumberish& aArg, ErrorResult& aRv);
     47 
     48  void GetY(OwningCSSNumberish& aRetVal) const;
     49 
     50  void SetY(const CSSNumberish& aArg, ErrorResult& aRv);
     51 
     52  void GetZ(OwningCSSNumberish& aRetVal) const;
     53 
     54  void SetZ(const CSSNumberish& aArg, ErrorResult& aRv);
     55 
     56  // end of CSSScale Web IDL declarations
     57 
     58 protected:
     59  virtual ~CSSScale() = default;
     60 };
     61 
     62 }  // namespace dom
     63 }  // namespace mozilla
     64 
     65 #endif  // LAYOUT_STYLE_TYPEDOM_CSSSCALE_H_