Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: services/ui/ws/viewport_metrics.h

Issue 2356913002: Pass device scale factor from display to ws. (Closed)
Patch Set: Rebase, fix tests and cleanup. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
sky 2016/09/22 21:42:06 // DDP is redundant with 'pixel'.
kylechar 2016/09/23 13:22:32 Done.
17 float device_scale_factor = 0.0f;
18 };
19
20 } // namespace ws
21 } // namespace ui
22
23 #endif // SERVICES_UI_WS_VIEWPORT_METRICS_H_
OLDNEW
« services/ui/ws/platform_display_delegate.h ('K') | « services/ui/ws/test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698