Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: ui/gfx/ipc/gfx_param_traits.h

Issue 1695783002: IPC::ParamTraits for ui::Event (towards ui::Events over mojo IPC) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/ipc/gfx_param_traits.h
diff --git a/ui/gfx/ipc/gfx_param_traits.h b/ui/gfx/ipc/gfx_param_traits.h
index 55c1b8524a9c01473f8cb5395d9b0dbe0531c7d0..e22d0a68c81d1c546c12e4f56563c90607ec32fa 100644
--- a/ui/gfx/ipc/gfx_param_traits.h
+++ b/ui/gfx/ipc/gfx_param_traits.h
@@ -48,6 +48,7 @@ struct GFX_IPC_EXPORT ParamTraits<gfx::Point> {
template <>
struct GFX_IPC_EXPORT ParamTraits<gfx::PointF> {
typedef gfx::PointF param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,
@@ -88,6 +89,7 @@ struct GFX_IPC_EXPORT ParamTraits<gfx::SizeF> {
template <>
struct GFX_IPC_EXPORT ParamTraits<gfx::Vector2d> {
typedef gfx::Vector2d param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,
@@ -118,6 +120,7 @@ struct GFX_IPC_EXPORT ParamTraits<gfx::Rect> {
template <>
struct GFX_IPC_EXPORT ParamTraits<gfx::RectF> {
typedef gfx::RectF param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
static void Write(base::Pickle* m, const param_type& p);
static bool Read(const base::Pickle* m,
base::PickleIterator* iter,

Powered by Google App Engine
This is Rietveld 408576698