From ba8f92f666d8cdf3f6bdbe4b53d214fade995b74 Mon Sep 17 00:00:00 2001 From: Feng Qian Date: Tue, 21 Apr 2009 12:03:24 -0700 Subject: Import V8binding code from Chromium tree. Sync'ed at Chromium trunk r12846. http://src.chromium.org/viewvc/chrome?view=rev&revision=12846 --- V8Binding/v8/RGBColor.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 V8Binding/v8/RGBColor.h (limited to 'V8Binding/v8/RGBColor.h') 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 + +namespace WebCore { + +class RGBColor : public RefCounted { + public: + RGBColor(unsigned rgbcolor) : m_rgbcolor(rgbcolor) { } + + PassRefPtr red(); + PassRefPtr green(); + PassRefPtr blue(); + + private: + unsigned m_rgbcolor; +}; + +} // namespace WebCore + +#endif // RGBColor_h -- cgit v1.1