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..ff92c38d1dbbccfc085b991337891465d329c28e |
| --- /dev/null |
| +++ b/ui/gfx/win/physical_size.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// 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 <string> |
| +#include <vector> |
| + |
| +#include "ui/gfx/gfx_export.h" |
| + |
| +namespace gfx { |
| + |
| +struct PhysicalDisplaySize { |
| + std::string display_name; |
|
sky
2016/01/13 21:00:10
Structs have functions before members too.
Bret
2016/01/14 01:28:23
Done.
|
| + int width_mm; |
| + int height_mm; |
| + |
| + PhysicalDisplaySize(const std::string& 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. |
| +GFX_EXPORT std::vector<PhysicalDisplaySize> GetPhysicalSizeForDisplays(); |
| + |
| +} // namespace gfx |
| + |
| +#endif // UI_GFX_DPI_WIN_H_ |