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