Chromium Code Reviews| Index: ui/display/types/display_mode.h |
| diff --git a/ui/display/types/display_mode.h b/ui/display/types/display_mode.h |
| index 0b972d5f497a8288007c0d154c74ca982964f31f..bb7bfc3973e1a1c9e201e2a90637214f1b370869 100644 |
| --- a/ui/display/types/display_mode.h |
| +++ b/ui/display/types/display_mode.h |
| @@ -20,9 +20,24 @@ namespace display { |
| class DISPLAY_TYPES_EXPORT DisplayMode { |
| public: |
| DisplayMode(const gfx::Size& size, bool interlaced, float refresh_rate); |
| + DisplayMode(DisplayMode&&) = default; |
|
kylechar
2017/01/24 21:15:07
Move to cc file.
thanhph1
2017/01/25 16:26:17
Done.
|
| + DisplayMode& operator=(DisplayMode&&) = default; |
|
kylechar
2017/01/24 21:15:07
Move to cc file.
thanhph1
2017/01/25 16:26:17
Done.
|
| + |
| virtual ~DisplayMode(); |
| virtual std::unique_ptr<DisplayMode> Clone() const; |
| + void set_size(const gfx::Size& size) { |
|
kylechar
2017/01/24 21:15:07
We really don't want to make DisplayMode mutable.
thanhph1
2017/01/25 16:26:17
As discussed, I removed display_mode_mojo.(cc|h) a
|
| + size_ = size; |
| + } |
| + |
| + void set_is_interlaced(const bool is_interlaced) { |
| + is_interlaced_ = is_interlaced; |
| + } |
| + |
| + void set_refresh_rate(const float refresh_rate) { |
| + refresh_rate_ = refresh_rate; |
| + } |
| + |
| const gfx::Size& size() const { return size_; } |
| bool is_interlaced() const { return is_interlaced_; } |
| float refresh_rate() const { return refresh_rate_; } |