diff options
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r-- | chrome/common/render_messages.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h index edbfaf8..fbc1798 100644 --- a/chrome/common/render_messages.h +++ b/chrome/common/render_messages.h @@ -24,6 +24,7 @@ #include "webkit/glue/password_form.h" #include "webkit/glue/password_form_dom_manager.h" #include "webkit/glue/resource_loader_bridge.h" +#include "webkit/glue/screen_info.h" #include "webkit/glue/webdropdata.h" #include "webkit/glue/webplugin.h" #include "webkit/glue/webpreferences.h" @@ -1649,6 +1650,30 @@ struct ParamTraits<WebDropData> { } }; +// Traits for ScreenInfo +template <> +struct ParamTraits<webkit_glue::ScreenInfo> { + typedef webkit_glue::ScreenInfo param_type; + static void Write(Message* m, const param_type& p) { + WriteParam(m, p.depth); + WriteParam(m, p.depth_per_component); + WriteParam(m, p.is_monochrome); + WriteParam(m, p.rect); + WriteParam(m, p.available_rect); + } + static bool Read(const Message* m, void** iter, param_type* p) { + return + ReadParam(m, iter, &p->depth) && + ReadParam(m, iter, &p->depth_per_component) && + ReadParam(m, iter, &p->is_monochrome) && + ReadParam(m, iter, &p->rect) && + ReadParam(m, iter, &p->available_rect); + } + static void Log(const param_type& p, std::wstring* l) { + l->append(L"<webkit_glue::ScreenInfo>"); + } +}; + } // namespace IPC #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |