diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 18:09:55 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-07 18:09:55 +0000 |
commit | b9ab10cd0c07c9c4bc5c9f09742c3ee8e03ab7a3 (patch) | |
tree | cfa98ae941be636ec692f3ac15ebf82aa0885d99 /chrome/common/render_messages.h | |
parent | f290f3e46ee27cf48b9b6dbc0f35c0d8af6d0c00 (diff) | |
download | chromium_src-b9ab10cd0c07c9c4bc5c9f09742c3ee8e03ab7a3.zip chromium_src-b9ab10cd0c07c9c4bc5c9f09742c3ee8e03ab7a3.tar.gz chromium_src-b9ab10cd0c07c9c4bc5c9f09742c3ee8e03ab7a3.tar.bz2 |
Add CSS Keyword values and conversion routines to webkit glue.
Review URL: http://codereview.chromium.org/149044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index 026ff36f..af9ded8 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -15,6 +15,7 @@ #include "base/shared_memory.h" #include "chrome/browser/renderer_host/resource_handler.h" #include "chrome/common/common_param_traits.h" +#include "chrome/common/css_colors.h" #include "chrome/common/filter_policy.h" #include "chrome/common/modal_dialog_event.h" #include "chrome/common/page_transition_types.h" @@ -1519,6 +1520,22 @@ struct ParamTraits<ViewHostMsg_DidPrintPage_Params> { } }; +// Traits for reading/writing CSS Colors +template <> +struct ParamTraits<CSSColors::CSSColorName> { + typedef CSSColors::CSSColorName param_type; + static void Write(Message* m, const param_type& p) { + WriteParam(m, static_cast<int>(p)); + } + static bool Read(const Message* m, void** iter, param_type* p) { + return ReadParam(m, iter, reinterpret_cast<int*>(p)); + } + static void Log(const param_type& p, std::wstring* l) { + l->append(L"<CSSColorName>"); + } +}; + + // Traits for RendererPreferences structure to pack/unpack. template <> struct ParamTraits<RendererPreferences> { |