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

Unified Diff: mojo/services/ui/views/cpp/logging.cc

Issue 1552043002: Make Mozart view manager use the new compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-12
Patch Set: Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/ui/views/cpp/logging.cc
diff --git a/mojo/services/ui/views/cpp/logging.cc b/mojo/services/ui/views/cpp/logging.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4240e9836093f91d156f8e72a24733f1017a430b
--- /dev/null
+++ b/mojo/services/ui/views/cpp/logging.cc
@@ -0,0 +1,54 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/services/ui/views/cpp/logging.h"
+
+#include <ostream>
+
+namespace mojo {
+namespace ui {
+
+std::ostream& operator<<(std::ostream& os, const mojo::ui::ViewToken& value) {
+ return os << "{value=" << value.value << "}";
+}
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::ui::ViewTreeToken& value) {
+ return os << "{value=" << value.value << "}";
+}
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::ui::BoxConstraints& value) {
+ return os << "{min_width=" << value.min_width
+ << ", max_width=" << value.max_width
+ << ", min_height=" << value.min_height
+ << ", max_height=" << value.max_height << "}";
+}
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::ui::ViewLayoutParams& value) {
+ return os << "{constraints=" << value.constraints
+ << ", device_pixel_ratio=" << value.device_pixel_ratio << "}";
+}
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::ui::ViewLayoutInfo& value) {
+ return os << "{size=" << value.size << ", scene_token=" << value.scene_token
+ << "}";
+}
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::ui::ViewLayoutResult& value) {
+ return os << "{size=" << value.size << "}";
+}
+
+std::ostream& operator<<(std::ostream& os,
+ const mojo::ui::ViewAssociateInfo& value) {
+ return os << "{view_service_names=" << value.view_service_names
+ << ", view_tree_service_names=" << value.view_tree_service_names
+ << "}";
+}
+
+} // namespace ui
+} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698