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

Unified Diff: ui/display/types/display_mode.cc

Issue 2636073002: Create mojom and StructTraits for ui/display/types/display_mode.cc (Closed)
Patch Set: add dep on mojo/public/cpp/bindings:struct_traits Created 3 years, 11 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
« ui/display/mojo/OWNERS ('K') | « ui/display/types/display_mode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/display_mode.cc
diff --git a/ui/display/types/display_mode.cc b/ui/display/types/display_mode.cc
index 6d43caa5638406c5e43a4b7003d0e491db066715..5ce848acdb588eeb5a6a12d3989ce91b94286ef8 100644
--- a/ui/display/types/display_mode.cc
+++ b/ui/display/types/display_mode.cc
@@ -9,6 +9,9 @@
namespace display {
+DisplayMode::DisplayMode()
+ : size_(gfx::Size()), is_interlaced_(false), refresh_rate_(0.0) {}
+
DisplayMode::DisplayMode(const gfx::Size& size,
bool interlaced,
float refresh_rate)
@@ -16,7 +19,11 @@ DisplayMode::DisplayMode(const gfx::Size& size,
is_interlaced_(interlaced),
refresh_rate_(refresh_rate) {}
-DisplayMode::~DisplayMode() {}
+DisplayMode::DisplayMode(DisplayMode&&) = default;
+
+DisplayMode& DisplayMode::operator=(DisplayMode&&) = default;
+
+DisplayMode::~DisplayMode() = default;
std::unique_ptr<DisplayMode> DisplayMode::Clone() const {
return base::WrapUnique(new DisplayMode(size_,
« ui/display/mojo/OWNERS ('K') | « ui/display/types/display_mode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698