/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef LAYOUT_STYLE_TYPEDOM_CSSOKLCH_H_ #define LAYOUT_STYLE_TYPEDOM_CSSOKLCH_H_ #include "js/TypeDecls.h" #include "mozilla/dom/CSSColorValue.h" #include "mozilla/dom/CSSColorValueBindingFwd.h" template struct already_AddRefed; template class nsCOMPtr; class nsISupports; namespace mozilla { class ErrorResult; namespace dom { class GlobalObject; class CSSOKLCH final : public CSSColorValue { public: explicit CSSOKLCH(nsCOMPtr aParent); JSObject* WrapObject(JSContext* aCx, JS::Handle aGivenProto) override; // start of CSSOKLCH Web IDL declarations static already_AddRefed Constructor(const GlobalObject& aGlobal, const CSSColorPercent& aL, const CSSColorPercent& aC, const CSSColorAngle& aH, const CSSColorPercent& aAlpha, ErrorResult& aRv); void GetL(OwningCSSColorPercent& aRetVal) const; void SetL(const CSSColorPercent& aArg, ErrorResult& aRv); void GetC(OwningCSSColorPercent& aRetVal) const; void SetC(const CSSColorPercent& aArg, ErrorResult& aRv); void GetH(OwningCSSColorAngle& aRetVal) const; void SetH(const CSSColorAngle& aArg, ErrorResult& aRv); void GetAlpha(OwningCSSColorPercent& aRetVal) const; void SetAlpha(const CSSColorPercent& aArg, ErrorResult& aRv); // end of CSSOKLCH Web IDL declarations private: virtual ~CSSOKLCH() = default; }; } // namespace dom } // namespace mozilla #endif // LAYOUT_STYLE_TYPEDOM_CSSOKLCH_H_