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

Side by Side Diff: ui/display/manager/chromeos/x11/display_mode_x11.cc

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years 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 unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « ui/display/manager/chromeos/x11/display_mode_x11.h ('k') | ui/display/manager/chromeos/x11/display_snapshot_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698