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

Unified Diff: ui/display/display.h

Issue 2123613002: Add a mojom/StructTrait for display::Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move unit test target. Created 4 years, 5 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
« no previous file with comments | « ui/display/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display.h
diff --git a/ui/display/display.h b/ui/display/display.h
index 72f8b8cb5a73dcf721bfe7fd0f6b37f47cf7d931..c3ae3092e519d3c7ddd24e931547612bd5a2bceb 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -11,8 +11,18 @@
#include "ui/display/display_export.h"
#include "ui/gfx/geometry/rect.h"
+#if !defined(OS_IOS)
+#include "mojo/public/cpp/bindings/struct_traits.h" // nogncheck
+#endif
+
namespace display {
+#if !defined(OS_IOS)
+namespace mojom {
+class Display;
+}
+#endif
+
// This class typically, but does not always, correspond to a physical display
// connected to the system. A fake Display may exist on a headless system, or a
// Display may correspond to a remote, virtual display.
@@ -162,6 +172,10 @@ class DISPLAY_EXPORT Display final {
Rotation rotation_;
TouchSupport touch_support_;
gfx::Size maximum_cursor_size_;
+
+#if !defined(OS_IOS)
+ friend struct mojo::StructTraits<display::mojom::Display, display::Display>;
+#endif
};
} // namespace display
« no previous file with comments | « ui/display/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698