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

Side by Side Diff: ui/display/win/screen_win.cc

Issue 2373523003: Clean up sparse_histogram.h header (Closed)
Patch Set: Rebase update on Oct 18 Created 4 years, 2 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 | « net/udp/udp_socket_posix.cc ('k') | ui/gl/angle_platform_impl.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/win/screen_win.h" 5 #include "ui/display/win/screen_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellscalingapi.h> 8 #include <shellscalingapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/metrics/sparse_histogram.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/win/win_util.h" 15 #include "base/win/win_util.h"
16 #include "ui/display/display.h" 16 #include "ui/display/display.h"
17 #include "ui/display/manager/display_layout.h" 17 #include "ui/display/manager/display_layout.h"
18 #include "ui/display/manager/display_layout_builder.h" 18 #include "ui/display/manager/display_layout_builder.h"
19 #include "ui/display/win/display_info.h" 19 #include "ui/display/win/display_info.h"
20 #include "ui/display/win/dpi.h" 20 #include "ui/display/win/dpi.h"
21 #include "ui/display/win/scaling_util.h" 21 #include "ui/display/win/scaling_util.h"
22 #include "ui/display/win/screen_win_display.h" 22 #include "ui/display/win/screen_win_display.h"
23 #include "ui/gfx/geometry/point.h" 23 #include "ui/gfx/geometry/point.h"
24 #include "ui/gfx/geometry/rect.h" 24 #include "ui/gfx/geometry/rect.h"
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 if (std::find(unique_scale_factors.begin(), unique_scale_factors.end(), 588 if (std::find(unique_scale_factors.begin(), unique_scale_factors.end(),
589 reported_scale) == unique_scale_factors.end()) { 589 reported_scale) == unique_scale_factors.end()) {
590 unique_scale_factors.push_back(reported_scale); 590 unique_scale_factors.push_back(reported_scale);
591 UMA_HISTOGRAM_SPARSE_SLOWLY("UI.DeviceScale", reported_scale); 591 UMA_HISTOGRAM_SPARSE_SLOWLY("UI.DeviceScale", reported_scale);
592 } 592 }
593 } 593 }
594 } 594 }
595 595
596 } // namespace win 596 } // namespace win
597 } // namespace display 597 } // namespace display
OLDNEW
« no previous file with comments | « net/udp/udp_socket_posix.cc ('k') | ui/gl/angle_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698