diff options
Diffstat (limited to 'V8Binding/v8/RGBColor.h')
-rw-r--r-- | V8Binding/v8/RGBColor.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/V8Binding/v8/RGBColor.h b/V8Binding/v8/RGBColor.h new file mode 100644 index 0000000..afc0500 --- /dev/null +++ b/V8Binding/v8/RGBColor.h @@ -0,0 +1,28 @@ +// 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 |