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

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

Issue 1408123005: Android Webview IPC-based sync compositing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win compile Created 5 years, 1 month 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/gfx_ipc.gyp ('k') | ui/gfx/ipc/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/gfx_param_traits.h
diff --git a/ui/gfx/ipc/gfx_param_traits.h b/ui/gfx/ipc/gfx_param_traits.h
index 77aa120600fbb2a286ccab65b721fe1c2aedf9ab..337505a20ee7bf04dd251058831aed94eea8c54f 100644
--- a/ui/gfx/ipc/gfx_param_traits.h
+++ b/ui/gfx/ipc/gfx_param_traits.h
@@ -22,6 +22,7 @@ class Point3F;
class Range;
class Rect;
class RectF;
+class ScrollOffset;
class Size;
class SizeF;
class Vector2d;
@@ -122,6 +123,14 @@ struct GFX_IPC_EXPORT ParamTraits<gfx::Range> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct GFX_IPC_EXPORT ParamTraits<gfx::ScrollOffset> {
+ typedef gfx::ScrollOffset param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_
« no previous file with comments | « ui/gfx/ipc/gfx_ipc.gyp ('k') | ui/gfx/ipc/gfx_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698