| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/memory/ptr_util.h" | |
| 6 | |
| 7 #include "ui/display/chromeos/x11/display_mode_x11.h" | |
| 8 | |
| 9 namespace ui { | |
| 10 | |
| 11 DisplayModeX11::DisplayModeX11(const gfx::Size& size, | |
| 12 bool interlaced, | |
| 13 float refresh_rate, | |
| 14 RRMode mode_id) | |
| 15 : DisplayMode(size, interlaced, refresh_rate), | |
| 16 mode_id_(mode_id) {} | |
| 17 | |
| 18 DisplayModeX11::~DisplayModeX11() {} | |
| 19 | |
| 20 std::unique_ptr<DisplayMode> DisplayModeX11::Clone() const { | |
| 21 return base::WrapUnique(new DisplayModeX11(size(), | |
| 22 is_interlaced(), | |
| 23 refresh_rate(), | |
| 24 mode_id())); | |
| 25 } | |
| 26 | |
| 27 } // namespace ui | |
| OLD | NEW |