| 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..551946220b068797f2fcdcdaef35d43a5a8ddc29
|
| --- /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;
|
| + float device_scale_factor = 0.0f;
|
| +};
|
| +
|
| +} // namespace ws
|
| +} // namespace ui
|
| +
|
| +#endif // SERVICES_UI_WS_VIEWPORT_METRICS_H_
|
|
|