tor-browser

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

CSSTransformComponent.h (1577B)


      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 #ifndef LAYOUT_STYLE_TYPEDOM_CSSTRANSFORMCOMPONENT_H_
      8 #define LAYOUT_STYLE_TYPEDOM_CSSTRANSFORMCOMPONENT_H_
      9 
     10 #include "js/TypeDecls.h"
     11 #include "mozilla/dom/DOMMatrixBindingFwd.h"
     12 #include "nsCOMPtr.h"
     13 #include "nsISupports.h"
     14 #include "nsISupportsImpl.h"
     15 #include "nsStringFwd.h"
     16 #include "nsWrapperCache.h"
     17 
     18 template <class T>
     19 struct already_AddRefed;
     20 
     21 namespace mozilla {
     22 
     23 class ErrorResult;
     24 
     25 namespace dom {
     26 
     27 class CSSTransformComponent : public nsISupports, public nsWrapperCache {
     28 public:
     29  explicit CSSTransformComponent(nsCOMPtr<nsISupports> aParent);
     30 
     31  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
     32  NS_DECL_CYCLE_COLLECTION_WRAPPERCACHE_CLASS(CSSTransformComponent)
     33 
     34  nsISupports* GetParentObject() const;
     35 
     36  JSObject* WrapObject(JSContext*, JS::Handle<JSObject*> aGivenProto) override;
     37 
     38  // start of CSSTransformComponent Web IDL declarations
     39 
     40  bool Is2D() const;
     41 
     42  void SetIs2D(bool aArg);
     43 
     44  already_AddRefed<DOMMatrix> ToMatrix(ErrorResult& aRv);
     45 
     46  void Stringify(nsString& aRetVal);
     47 
     48  // end of CSSTransformComponent Web IDL declarations
     49 
     50 protected:
     51  virtual ~CSSTransformComponent() = default;
     52 
     53  nsCOMPtr<nsISupports> mParent;
     54 };
     55 
     56 }  // namespace dom
     57 }  // namespace mozilla
     58 
     59 #endif  // LAYOUT_STYLE_TYPEDOM_CSSTRANSFORMCOMPONENT_H_