Chromium Code Reviews| Index: services/ui/ws/viewport_metrics.h |
| diff --git a/services/ui/ws/viewport_metrics.h b/services/ui/ws/viewport_metrics.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..073688882e67a956683af4989c06489f955bd407 |
| --- /dev/null |
| +++ b/services/ui/ws/viewport_metrics.h |
| @@ -0,0 +1,23 @@ |
| +// 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 SERVICES_UI_WS_VIEWPORT_METRICS_H_ |
| +#define SERVICES_UI_WS_VIEWPORT_METRICS_H_ |
| + |
| +#include "ui/gfx/geometry/rect.h" |
| +#include "ui/gfx/geometry/size.h" |
| + |
| +namespace ui { |
| +namespace ws { |
| + |
| +struct ViewportMetrics { |
| + gfx::Rect bounds; // DIP. |
| + gfx::Size pixel_size; // DDP |
|
sky
2016/09/22 21:42:06
// DDP is redundant with 'pixel'.
kylechar
2016/09/23 13:22:32
Done.
|
| + float device_scale_factor = 0.0f; |
| +}; |
| + |
| +} // namespace ws |
| +} // namespace ui |
| + |
| +#endif // SERVICES_UI_WS_VIEWPORT_METRICS_H_ |