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

Side by Side Diff: mojo/services/ui/views/cpp/formatting.cc

Issue 1873573003: Mozart: Ensure time always runs forward. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: fix build error on Android Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « mojo/services/gfx/composition/cpp/formatting.cc ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/services/gfx/composition/cpp/formatting.cc ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698