| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [DartPackage="mojo_services"] |
| 5 module mojo; | 6 module mojo; |
| 6 | 7 |
| 7 import "geometry/public/interfaces/geometry.mojom"; | 8 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "gpu/public/interfaces/context_provider.mojom"; | 9 import "gpu/public/interfaces/context_provider.mojom"; |
| 9 import "input_events/public/interfaces/input_events.mojom"; | 10 import "input_events/public/interfaces/input_events.mojom"; |
| 10 | 11 |
| 11 struct ViewportMetrics { | 12 struct ViewportMetrics { |
| 12 Size size; | 13 Size size; |
| 13 float device_pixel_ratio = 1.0; | 14 float device_pixel_ratio = 1.0; |
| 14 }; | 15 }; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 41 // method. Call RequestMetrics() to receive updates when the viewport metrics | 42 // method. Call RequestMetrics() to receive updates when the viewport metrics |
| 42 // change. The reply will be sent when the viewport metrics are different from | 43 // change. The reply will be sent when the viewport metrics are different from |
| 43 // the values last sent, so to receive continuous updates call this method | 44 // the values last sent, so to receive continuous updates call this method |
| 44 // again after receiving the callback. | 45 // again after receiving the callback. |
| 45 RequestMetrics() => (ViewportMetrics metrics); | 46 RequestMetrics() => (ViewportMetrics metrics); |
| 46 }; | 47 }; |
| 47 | 48 |
| 48 interface NativeViewportEventDispatcher { | 49 interface NativeViewportEventDispatcher { |
| 49 OnEvent(Event event) => (); | 50 OnEvent(Event event) => (); |
| 50 }; | 51 }; |
| OLD | NEW |