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 #include "ui/gfx/ipc/gfx_param_traits.h" | 5 #include "ui/gfx/ipc/gfx_param_traits.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 return false; | 280 return false; |
281 r->set_start(start); | 281 r->set_start(start); |
282 r->set_end(end); | 282 r->set_end(end); |
283 return true; | 283 return true; |
284 } | 284 } |
285 | 285 |
286 void ParamTraits<gfx::Range>::Log(const gfx::Range& r, std::string* l) { | 286 void ParamTraits<gfx::Range>::Log(const gfx::Range& r, std::string* l) { |
287 l->append(base::StringPrintf("(%" PRIuS ", %" PRIuS ")", r.start(), r.end())); | 287 l->append(base::StringPrintf("(%" PRIuS ", %" PRIuS ")", r.start(), r.end())); |
288 } | 288 } |
289 | 289 |
| 290 } // namespace IPC |
290 | 291 |
| 292 // Generate param traits write methods. |
| 293 #include "ipc/param_traits_write_macros.h" |
| 294 namespace IPC { |
| 295 #undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
| 296 #include "ui/gfx/ipc/gfx_param_traits_macros.h" |
291 } // namespace IPC | 297 } // namespace IPC |
| 298 |
| 299 // Generate param traits read methods. |
| 300 #include "ipc/param_traits_read_macros.h" |
| 301 namespace IPC { |
| 302 #undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
| 303 #include "ui/gfx/ipc/gfx_param_traits_macros.h" |
| 304 } // namespace IPC |
| 305 |
| 306 // Generate param traits log methods. |
| 307 #include "ipc/param_traits_log_macros.h" |
| 308 namespace IPC { |
| 309 #undef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
| 310 #include "ui/gfx/ipc/gfx_param_traits_macros.h" |
| 311 } // namespace IPC |
OLD | NEW |