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

Side by Side Diff: components/metrics/ui/screen_info_metrics_provider.cc

Issue 1679393002: Multiple DPI Tracking for ScreenWin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR Feedback EXCEPT rect_util Rename Created 4 years, 10 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/window_finder_win.cc ('k') | content/browser/renderer_host/input/web_input_event_builders_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698