| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
| 6 | 6 |
| 7 #include "ui/display/chromeos/x11/display_mode_x11.h" | 7 #include "ui/display/manager/chromeos/x11/display_mode_x11.h" |
| 8 | 8 |
| 9 namespace ui { | 9 namespace ui { |
| 10 | 10 |
| 11 DisplayModeX11::DisplayModeX11(const gfx::Size& size, | 11 DisplayModeX11::DisplayModeX11(const gfx::Size& size, |
| 12 bool interlaced, | 12 bool interlaced, |
| 13 float refresh_rate, | 13 float refresh_rate, |
| 14 RRMode mode_id) | 14 RRMode mode_id) |
| 15 : DisplayMode(size, interlaced, refresh_rate), | 15 : DisplayMode(size, interlaced, refresh_rate), mode_id_(mode_id) {} |
| 16 mode_id_(mode_id) {} | |
| 17 | 16 |
| 18 DisplayModeX11::~DisplayModeX11() {} | 17 DisplayModeX11::~DisplayModeX11() {} |
| 19 | 18 |
| 20 std::unique_ptr<DisplayMode> DisplayModeX11::Clone() const { | 19 std::unique_ptr<DisplayMode> DisplayModeX11::Clone() const { |
| 21 return base::WrapUnique(new DisplayModeX11(size(), | 20 return base::WrapUnique( |
| 22 is_interlaced(), | 21 new DisplayModeX11(size(), is_interlaced(), refresh_rate(), mode_id())); |
| 23 refresh_rate(), | |
| 24 mode_id())); | |
| 25 } | 22 } |
| 26 | 23 |
| 27 } // namespace ui | 24 } // namespace ui |
| OLD | NEW |