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

Unified Diff: components/native_viewport/public/interfaces/native_viewport.mojom

Issue 1136743003: Plumbs through screen size and scale factor to html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: components/native_viewport/public/interfaces/native_viewport.mojom
diff --git a/components/native_viewport/public/interfaces/native_viewport.mojom b/components/native_viewport/public/interfaces/native_viewport.mojom
index 49ce3778ba6268ece74fe999fa675478d969de3a..42de749b22dfc07da1f43b30c6e6fab69ae97128 100644
--- a/components/native_viewport/public/interfaces/native_viewport.mojom
+++ b/components/native_viewport/public/interfaces/native_viewport.mojom
@@ -10,7 +10,8 @@ import "ui/mojo/events/input_events.mojom";
struct ViewportMetrics {
Size size;
- float device_pixel_ratio = 1.0;
+ // A value of 0 indicates the real value is not yet available.
+ float device_pixel_ratio = 0.0;
};
interface NativeViewport {
« no previous file with comments | « components/native_viewport/platform_viewport_x11.cc ('k') | components/view_manager/public/cpp/view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698