Chromium Code Reviews| Index: ui/gfx/win/physical_size.h |
| diff --git a/ui/gfx/win/physical_size.h b/ui/gfx/win/physical_size.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..950f703188a234ff9be77346751b9c2b7ac96415 |
| --- /dev/null |
| +++ b/ui/gfx/win/physical_size.h |
| @@ -0,0 +1,29 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_GFX_WIN_PHYSICAL_SIZE_H_ |
| +#define UI_GFX_WIN_PHYSICAL_SIZE_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/strings/string16.h" |
| +#include "ui/gfx/gfx_export.h" |
| + |
| +namespace gfx { |
| + |
| +struct DisplaySize { |
|
robliao
2016/01/11 18:42:20
Maybe PhysicalDisplaySize?
Bret
2016/01/12 00:23:47
Done.
|
| + base::string16 display_name; |
| + int width_mm; |
| + int height_mm; |
| + |
| + DisplaySize(base::string16 display_name, int width_mm, int height_mm) |
| + : display_name(display_name), width_mm(width_mm), height_mm(height_mm) {} |
| +}; |
| + |
| +// Gets the physical size for all displays. |
| +void GFX_EXPORT GetPhysicalSizeForDisplays(std::vector<DisplaySize>* out); |
| + |
| +} // namespace gfx |
| + |
| +#endif // UI_GFX_DPI_WIN_H_ |