Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ui / display / types / display_mode.cc
blob1e4454dc45f1d9cc4e5952f8994c0f819956af0f
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.
5 #include "ui/display/types/display_mode.h"
7 #include "base/strings/stringprintf.h"
9 namespace ui {
11 DisplayMode::DisplayMode(const gfx::Size& size,
12 bool interlaced,
13 float refresh_rate)
14 : size_(size),
15 is_interlaced_(interlaced),
16 refresh_rate_(refresh_rate) {}
18 DisplayMode::~DisplayMode() {}
20 std::string DisplayMode::ToString() const {
21 return base::StringPrintf("[%dx%d %srate=%f]",
22 size_.width(),
23 size_.height(),
24 is_interlaced_ ? "interlaced " : "",
25 refresh_rate_);
28 } // namespace ui