| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mojo/services/ui/views/cpp/formatting.h" | 5 #include "mojo/services/ui/views/cpp/formatting.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 std::ostream& operator<<(std::ostream& os, const mojo::ui::ViewToken& value) { | 12 std::ostream& operator<<(std::ostream& os, const mojo::ui::ViewToken& value) { |
| 13 return os << "{value=" << value.value << "}"; | 13 return os << "<V" << value.value << ">"; |
| 14 } | 14 } |
| 15 | 15 |
| 16 std::ostream& operator<<(std::ostream& os, | 16 std::ostream& operator<<(std::ostream& os, |
| 17 const mojo::ui::ViewTreeToken& value) { | 17 const mojo::ui::ViewTreeToken& value) { |
| 18 return os << "{value=" << value.value << "}"; | 18 return os << "<T" << value.value << ">"; |
| 19 } | 19 } |
| 20 | 20 |
| 21 std::ostream& operator<<(std::ostream& os, const mojo::ui::ViewInfo& value) { | 21 std::ostream& operator<<(std::ostream& os, const mojo::ui::ViewInfo& value) { |
| 22 return os << "{scene_token=" << value.scene_token << "}"; | 22 return os << "{scene_token=" << value.scene_token << "}"; |
| 23 } | 23 } |
| 24 | 24 |
| 25 std::ostream& operator<<(std::ostream& os, | 25 std::ostream& operator<<(std::ostream& os, |
| 26 const mojo::ui::ViewProperties& value) { | 26 const mojo::ui::ViewProperties& value) { |
| 27 return os << "{display_metrics=" << value.display_metrics | 27 return os << "{display_metrics=" << value.display_metrics |
| 28 << ", view_layout=" << value.view_layout << "}"; | 28 << ", view_layout=" << value.view_layout << "}"; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 std::ostream& operator<<(std::ostream& os, | 40 std::ostream& operator<<(std::ostream& os, |
| 41 const mojo::ui::ViewAssociateInfo& value) { | 41 const mojo::ui::ViewAssociateInfo& value) { |
| 42 return os << "{view_service_names=" << value.view_service_names | 42 return os << "{view_service_names=" << value.view_service_names |
| 43 << ", view_tree_service_names=" << value.view_tree_service_names | 43 << ", view_tree_service_names=" << value.view_tree_service_names |
| 44 << "}"; | 44 << "}"; |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace ui | 47 } // namespace ui |
| 48 } // namespace mojo | 48 } // namespace mojo |
| OLD | NEW |