OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <stdio.h> | 5 #include <stdio.h> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "ash/display/display_info.h" | 9 #include "ash/display/display_info.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "ui/gfx/display.h" | 14 #include "ui/gfx/display.h" |
15 #include "ui/gfx/size_conversions.h" | 15 #include "ui/gfx/size_conversions.h" |
16 #include "ui/gfx/size_f.h" | 16 #include "ui/gfx/size_f.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #include "ui/aura/window_tree_host.h" | 19 #include "ui/aura/window_tree_host.h" |
20 #include "ui/gfx/win/dpi.h" | 20 #include "ui/gfx/win/dpi.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace ash { | 23 namespace ash { |
24 namespace internal { | |
25 | 24 |
26 DisplayMode::DisplayMode() | 25 DisplayMode::DisplayMode() |
27 : refresh_rate(0.0f), interlaced(false), native(false) {} | 26 : refresh_rate(0.0f), interlaced(false), native(false) {} |
28 | 27 |
29 DisplayMode::DisplayMode(const gfx::Size& size, | 28 DisplayMode::DisplayMode(const gfx::Size& size, |
30 float refresh_rate, | 29 float refresh_rate, |
31 bool interlaced, | 30 bool interlaced, |
32 bool native) | 31 bool native) |
33 : size(size), | 32 : size(size), |
34 refresh_rate(refresh_rate), | 33 refresh_rate(refresh_rate), |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 color_profile_ = profile; | 308 color_profile_ = profile; |
310 } | 309 } |
311 | 310 |
312 bool DisplayInfo::IsColorProfileAvailable( | 311 bool DisplayInfo::IsColorProfileAvailable( |
313 ui::ColorCalibrationProfile profile) const { | 312 ui::ColorCalibrationProfile profile) const { |
314 return std::find(available_color_profiles_.begin(), | 313 return std::find(available_color_profiles_.begin(), |
315 available_color_profiles_.end(), | 314 available_color_profiles_.end(), |
316 profile) != available_color_profiles_.end(); | 315 profile) != available_color_profiles_.end(); |
317 } | 316 } |
318 | 317 |
319 } // namespace internal | |
320 } // namespace ash | 318 } // namespace ash |
OLD | NEW |