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

Unified Diff: mojo/services/native_viewport/public/interfaces/native_viewport.mojom

Issue 830593003: Update mojo sdk to rev 9fbbc4f0fef1187312316c0ed992342474e139f1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cherry-pick mojo 9d3b8dd17f12d20035a14737fdc38dd926890ff8 Created 5 years, 11 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: mojo/services/native_viewport/public/interfaces/native_viewport.mojom
diff --git a/mojo/services/native_viewport/public/interfaces/native_viewport.mojom b/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
index 550aad89a6998dab4b9ca9804abc4e2a5972cf71..4960051480d6e643b8709b682e679f87bc21db08 100644
--- a/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
+++ b/mojo/services/native_viewport/public/interfaces/native_viewport.mojom
@@ -9,6 +9,11 @@ import "mojo/services/gpu/public/interfaces/command_buffer.mojom";
import "mojo/services/input_events/public/interfaces/input_events.mojom";
import "mojo/services/surfaces/public/interfaces/surface_id.mojom";
+struct ViewportMetrics {
+ Size size;
+ float device_pixel_ratio = 1.0;
+};
+
[Client=NativeViewportClient]
interface NativeViewport {
// TODO(sky): having a create function is awkward. Should there be a factory
@@ -27,8 +32,8 @@ interface NativeViewportEventDispatcher {
};
interface NativeViewportClient {
- // OnSizeChanged() is sent at least once after the callback from Create() is
- // called.
- OnSizeChanged(Size size);
+ // OnMetricsAvailable() is sent at least once after the callback from Create()
+ // is called.
+ OnMetricsChanged(ViewportMetrics metrics);
OnDestroyed();
};
« no previous file with comments | « mojo/services/native_viewport/public/interfaces/BUILD.gn ('k') | mojo/services/navigation/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698