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

Side by Side Diff: ui/display/types/display_mode.cc

Issue 558253003: display: Move ui/display/types/chromeos/* to ui/display/types/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « ui/display/types/display_mode.h ('k') | ui/display/types/display_snapshot.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/display/types/chromeos/display_mode.h" 5 #include "ui/display/types/display_mode.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
11 DisplayMode::DisplayMode(const gfx::Size& size, 11 DisplayMode::DisplayMode(const gfx::Size& size,
12 bool interlaced, 12 bool interlaced,
13 float refresh_rate) 13 float refresh_rate)
14 : size_(size), 14 : size_(size),
15 is_interlaced_(interlaced), 15 is_interlaced_(interlaced),
16 refresh_rate_(refresh_rate) {} 16 refresh_rate_(refresh_rate) {}
17 17
18 DisplayMode::~DisplayMode() {} 18 DisplayMode::~DisplayMode() {}
19 19
20 std::string DisplayMode::ToString() const { 20 std::string DisplayMode::ToString() const {
21 return base::StringPrintf("[%dx%d %srate=%f]", 21 return base::StringPrintf("[%dx%d %srate=%f]",
22 size_.width(), 22 size_.width(),
23 size_.height(), 23 size_.height(),
24 is_interlaced_ ? "interlaced " : "", 24 is_interlaced_ ? "interlaced " : "",
25 refresh_rate_); 25 refresh_rate_);
26 } 26 }
27 27
28 } // namespace ui 28 } // namespace ui
OLDNEW
« no previous file with comments | « ui/display/types/display_mode.h ('k') | ui/display/types/display_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698