Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
robliao
2016/01/11 18:42:20
Follow the guidance regarding this header from
htt
Bret
2016/01/12 00:23:47
Done.
| |
| 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 <vector> | |
| 9 | |
| 10 #include "base/strings/string16.h" | |
| 11 #include "ui/gfx/gfx_export.h" | |
| 12 | |
| 13 namespace gfx { | |
| 14 | |
| 15 struct DisplaySize { | |
|
robliao
2016/01/11 18:42:20
Maybe PhysicalDisplaySize?
Bret
2016/01/12 00:23:47
Done.
| |
| 16 base::string16 display_name; | |
| 17 int width_mm; | |
| 18 int height_mm; | |
| 19 | |
| 20 DisplaySize(base::string16 display_name, int width_mm, int height_mm) | |
| 21 : display_name(display_name), width_mm(width_mm), height_mm(height_mm) {} | |
| 22 }; | |
| 23 | |
| 24 // Gets the physical size for all displays. | |
| 25 void GFX_EXPORT GetPhysicalSizeForDisplays(std::vector<DisplaySize>* out); | |
| 26 | |
| 27 } // namespace gfx | |
| 28 | |
| 29 #endif // UI_GFX_DPI_WIN_H_ | |
| OLD | NEW |