OLD | NEW |
---|---|
(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 SERVICES_UI_WS_VIEWPORT_METRICS_H_ | |
6 #define SERVICES_UI_WS_VIEWPORT_METRICS_H_ | |
7 | |
8 #include "ui/gfx/geometry/rect.h" | |
9 #include "ui/gfx/geometry/size.h" | |
10 | |
11 namespace ui { | |
12 namespace ws { | |
13 | |
14 struct ViewportMetrics { | |
15 gfx::Rect bounds; // DIP. | |
16 gfx::Size pixel_size; // DDP | |
17 float device_scale_factor = 0.0f; | |
rjkroege
2016/09/21 13:23:47
see previous blither. cheaper to recompute from th
kylechar
2016/09/21 16:31:13
See my reply in other comment.
| |
18 }; | |
19 | |
20 } // namespace ws | |
21 } // namespace ui | |
22 | |
23 #endif // SERVICES_UI_WS_VIEWPORT_METRICS_H_ | |
OLD | NEW |