diff options
author | Feng Qian <fqian@google.com> | 2009-04-29 13:44:39 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-04-29 14:03:16 -0700 |
commit | 25f03f86220d0b28648f70eceb4ba64821552001 (patch) | |
tree | 93d9905c532d5f0fda746331ca8cff142f46cbbd /V8Binding/v8/RGBColor.h | |
parent | 8535e17115184dbb5e448b6364b88eb52df34482 (diff) | |
parent | 5001a3bfb57dd395bf6774dd1223042b0c03afa7 (diff) | |
download | external_webkit-25f03f86220d0b28648f70eceb4ba64821552001.zip external_webkit-25f03f86220d0b28648f70eceb4ba64821552001.tar.gz external_webkit-25f03f86220d0b28648f70eceb4ba64821552001.tar.bz2 |
Merge commit 'goog/master-v8droid' into HEAD
The CL imports V8 source from trunk, and V8 binding code from Chromium,
and small changes from future WebKit revision.
To enable V8, add ENABLE_V8 := true in buildspec.mk.
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 |