| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/metrics/ui/screen_info_metrics_provider.h" | 5 #include "components/metrics/ui/screen_info_metrics_provider.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "components/metrics/proto/system_profile.pb.h" | 8 #include "components/metrics/proto/system_profile.pb.h" |
| 9 #include "ui/gfx/display.h" |
| 9 #include "ui/gfx/screen.h" | 10 #include "ui/gfx/screen.h" |
| 10 | 11 |
| 11 namespace metrics { | 12 namespace metrics { |
| 12 | 13 |
| 13 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 14 | 15 |
| 15 #include <windows.h> | 16 #include <windows.h> |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 84 |
| 84 float ScreenInfoMetricsProvider::GetScreenDeviceScaleFactor() const { | 85 float ScreenInfoMetricsProvider::GetScreenDeviceScaleFactor() const { |
| 85 return gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor(); | 86 return gfx::Screen::GetScreen()->GetPrimaryDisplay().device_scale_factor(); |
| 86 } | 87 } |
| 87 | 88 |
| 88 int ScreenInfoMetricsProvider::GetScreenCount() const { | 89 int ScreenInfoMetricsProvider::GetScreenCount() const { |
| 89 return gfx::Screen::GetScreen()->GetNumDisplays(); | 90 return gfx::Screen::GetScreen()->GetNumDisplays(); |
| 90 } | 91 } |
| 91 | 92 |
| 92 } // namespace metrics | 93 } // namespace metrics |
| OLD | NEW |