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

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

Issue 2636073002: Create mojom and StructTraits for ui/display/types/display_mode.cc (Closed)
Patch Set: Change structure not to use display_mode_mojo.(cc|h). Instead, use friend class in display_mode.h. 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/types/display_mode.h ('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..df9c1da8107cf9f22690d7d7d84a2781dd32275b 100644
--- a/ui/display/types/display_mode.cc
+++ b/ui/display/types/display_mode.cc
@@ -9,6 +9,11 @@
namespace display {
+DisplayMode::DisplayMode()
+ : size_(gfx::Size()),
+ is_interlaced_(0),
kylechar 2017/01/25 16:59:45 This is a bool not an int.
+ refresh_rate_(0.0) {}
+
DisplayMode::DisplayMode(const gfx::Size& size,
bool interlaced,
float refresh_rate)
@@ -16,7 +21,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/types/display_mode.h ('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