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

Side by Side Diff: ui/gfx/win/physical_size.h

Issue 1563183008: Added capability on Windows to get the physical dimensions of your attached monitors. Also added th… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn build and applied guid brace warning fix Created 4 years, 11 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 | « ui/gfx/gfx.gyp ('k') | ui/gfx/win/physical_size.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef UI_GFX_WIN_PHYSICAL_SIZE_H_
6 #define UI_GFX_WIN_PHYSICAL_SIZE_H_
7
8 #include <string>
9 #include <vector>
10
11 #include "ui/gfx/gfx_export.h"
12
13 namespace gfx {
14
15 struct PhysicalDisplaySize {
16 PhysicalDisplaySize(const std::string& display_name,
17 int width_mm,
18 int height_mm)
19 : display_name(display_name), width_mm(width_mm), height_mm(height_mm) {}
20
21 std::string display_name;
22 int width_mm;
23 int height_mm;
24 };
25
26 // Gets the physical size for all displays.
27 GFX_EXPORT std::vector<PhysicalDisplaySize> GetPhysicalSizeForDisplays();
28
29 } // namespace gfx
30
31 #endif // UI_GFX_DPI_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/gfx.gyp ('k') | ui/gfx/win/physical_size.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698