blob: afc05007cc4fc9829f755c13e94f11a7a5059e7b [file] [log] [blame]
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef RGBColor_h
#define RGBColor_h
#include "config.h"
#include "CSSPrimitiveValue.h"
#include <wtf/RefCounted.h>
namespace WebCore {
class RGBColor : public RefCounted<RGBColor> {
public:
RGBColor(unsigned rgbcolor) : m_rgbcolor(rgbcolor) { }
PassRefPtr<CSSPrimitiveValue> red();
PassRefPtr<CSSPrimitiveValue> green();
PassRefPtr<CSSPrimitiveValue> blue();
private:
unsigned m_rgbcolor;
};
} // namespace WebCore
#endif // RGBColor_h