2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/* DOM object representing color values in DOM computed style */
|
|
|
|
|
|
|
|
#ifndef nsDOMCSSRGBColor_h__
|
|
|
|
#define nsDOMCSSRGBColor_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsIDOMNSRGBAColor.h"
|
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
|
|
|
class nsIDOMCSSPrimitiveValue;
|
|
|
|
|
|
|
|
class nsDOMCSSRGBColor : public nsIDOMNSRGBAColor {
|
|
|
|
public:
|
|
|
|
nsDOMCSSRGBColor(nsIDOMCSSPrimitiveValue* aRed,
|
|
|
|
nsIDOMCSSPrimitiveValue* aGreen,
|
|
|
|
nsIDOMCSSPrimitiveValue* aBlue,
|
|
|
|
nsIDOMCSSPrimitiveValue* aAlpha,
|
2011-09-28 23:19:26 -07:00
|
|
|
bool aHasAlpha);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
virtual ~nsDOMCSSRGBColor(void);
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDOMRGBCOLOR
|
|
|
|
NS_DECL_NSIDOMNSRGBACOLOR
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool HasAlpha() const { return mHasAlpha; }
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
nsCOMPtr<nsIDOMCSSPrimitiveValue> mRed;
|
|
|
|
nsCOMPtr<nsIDOMCSSPrimitiveValue> mGreen;
|
|
|
|
nsCOMPtr<nsIDOMCSSPrimitiveValue> mBlue;
|
|
|
|
nsCOMPtr<nsIDOMCSSPrimitiveValue> mAlpha;
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mHasAlpha;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsDOMCSSRGBColor_h__
|