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

Unified Diff: services/ui/ws/viewport_metrics.h

Issue 2356913002: Pass device scale factor from display to ws. (Closed)
Patch Set: Fix more tests. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree_host_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_tree_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698