tor-browser

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

CSSOKLab.h (2047B)


      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_CSSOKLAB_H_
      8 #define LAYOUT_STYLE_TYPEDOM_CSSOKLAB_H_
      9 
     10 #include "js/TypeDecls.h"
     11 #include "mozilla/dom/CSSColorValue.h"
     12 #include "mozilla/dom/CSSColorValueBindingFwd.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 
     28 class CSSOKLab final : public CSSColorValue {
     29 public:
     30  explicit CSSOKLab(nsCOMPtr<nsISupports> aParent);
     31 
     32  JSObject* WrapObject(JSContext* aCx,
     33                       JS::Handle<JSObject*> aGivenProto) override;
     34 
     35  // start of CSSOKLab Web IDL declarations
     36 
     37  static already_AddRefed<CSSOKLab> Constructor(const GlobalObject& aGlobal,
     38                                                const CSSColorPercent& aL,
     39                                                const CSSColorNumber& aA,
     40                                                const CSSColorNumber& aB,
     41                                                const CSSColorPercent& aAlpha,
     42                                                ErrorResult& aRv);
     43 
     44  void GetL(OwningCSSColorPercent& aRetVal) const;
     45 
     46  void SetL(const CSSColorPercent& aArg, ErrorResult& aRv);
     47 
     48  void GetA(OwningCSSColorNumber& aRetVal) const;
     49 
     50  void SetA(const CSSColorNumber& aArg, ErrorResult& aRv);
     51 
     52  void GetB(OwningCSSColorNumber& aRetVal) const;
     53 
     54  void SetB(const CSSColorNumber& aArg, ErrorResult& aRv);
     55 
     56  void GetAlpha(OwningCSSColorPercent& aRetVal) const;
     57 
     58  void SetAlpha(const CSSColorPercent& aArg, ErrorResult& aRv);
     59 
     60  // end of CSSOKLab Web IDL declarations
     61 
     62 private:
     63  virtual ~CSSOKLab() = default;
     64 };
     65 
     66 }  // namespace dom
     67 }  // namespace mozilla
     68 
     69 #endif  // LAYOUT_STYLE_TYPEDOM_CSSOKLAB_H_