| 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; | |
| 17 float device_scale_factor = 0.0f; | |
| 18 }; | |
| 19 | |
| 20 } // namespace ws | |
| 21 } // namespace ui | |
| 22 | |
| 23 #endif // SERVICES_UI_WS_VIEWPORT_METRICS_H_ | |
| OLD | NEW |