| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_H_ | 5 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_H_ |
| 6 #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_ | 6 #define UI_GFX_IPC_GFX_PARAM_TRAITS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ipc/ipc_message_utils.h" | 10 #include "ipc/ipc_message_utils.h" |
| 11 #include "ipc/param_traits_macros.h" |
| 12 #include "ui/gfx/buffer_types.h" |
| 11 #include "ui/gfx/ipc/gfx_ipc_export.h" | 13 #include "ui/gfx/ipc/gfx_ipc_export.h" |
| 12 #include "ui/gfx/ipc/gfx_param_traits.h" | 14 #include "ui/gfx/ipc/gfx_param_traits_macros.h" |
| 13 | 15 |
| 14 class SkBitmap; | 16 class SkBitmap; |
| 15 | 17 |
| 16 namespace gfx { | 18 namespace gfx { |
| 17 class Point; | 19 class Point; |
| 18 class PointF; | 20 class PointF; |
| 19 class Range; | 21 class Range; |
| 20 class Rect; | 22 class Rect; |
| 21 class RectF; | 23 class RectF; |
| 22 class Size; | 24 class Size; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 struct GFX_IPC_EXPORT ParamTraits<gfx::Range> { | 109 struct GFX_IPC_EXPORT ParamTraits<gfx::Range> { |
| 108 typedef gfx::Range param_type; | 110 typedef gfx::Range param_type; |
| 109 static void Write(Message* m, const param_type& p); | 111 static void Write(Message* m, const param_type& p); |
| 110 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); | 112 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r); |
| 111 static void Log(const param_type& p, std::string* l); | 113 static void Log(const param_type& p, std::string* l); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace IPC | 116 } // namespace IPC |
| 115 | 117 |
| 116 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_ | 118 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_H_ |
| OLD | NEW |