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

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

Issue 1966983003: Generate param traits size methods for IPC files in content/ (and traits it depends on). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix owners Created 4 years, 7 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
« no previous file with comments | « ui/gfx/ipc/geometry/OWNERS ('k') | ui/gfx/ipc/geometry/gfx_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ipc/geometry/gfx_param_traits.h
diff --git a/ui/gfx/ipc/geometry/gfx_param_traits.h b/ui/gfx/ipc/geometry/gfx_param_traits.h
index 500048e6c77703a2ef85ce6ed65f0264c0410816..eda8790eb3703886673424928fde2f4fa3bfcd06 100644
--- a/ui/gfx/ipc/geometry/gfx_param_traits.h
+++ b/ui/gfx/ipc/geometry/gfx_param_traits.h
@@ -29,6 +29,7 @@ namespace IPC {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Point> {
typedef gfx::Point 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,
@@ -50,6 +51,7 @@ struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::PointF> {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Point3F> {
typedef gfx::Point3F 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,
@@ -60,6 +62,7 @@ struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Point3F> {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Size> {
typedef gfx::Size 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,
@@ -70,6 +73,7 @@ struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Size> {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::SizeF> {
typedef gfx::SizeF 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,
@@ -91,6 +95,7 @@ struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Vector2d> {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Vector2dF> {
typedef gfx::Vector2dF 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,
@@ -101,6 +106,7 @@ struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Vector2dF> {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::Rect> {
typedef gfx::Rect 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,
@@ -122,6 +128,7 @@ struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::RectF> {
template <>
struct GFX_IPC_GEOMETRY_EXPORT ParamTraits<gfx::ScrollOffset> {
typedef gfx::ScrollOffset 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,
« no previous file with comments | « ui/gfx/ipc/geometry/OWNERS ('k') | ui/gfx/ipc/geometry/gfx_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698