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 [DartPackage="mojo_services"] |
6 module mojo; | 6 module mojo; |
7 | 7 |
8 import "geometry/public/interfaces/geometry.mojom"; | 8 import "geometry/public/interfaces/geometry.mojom"; |
9 import "gpu/public/interfaces/context_provider.mojom"; | 9 import "gpu/public/interfaces/context_provider.mojom"; |
10 import "input_events/public/interfaces/input_events.mojom"; | 10 import "input_events/public/interfaces/input_events.mojom"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 // method. Call RequestMetrics() to receive updates when the viewport metrics | 42 // method. Call RequestMetrics() to receive updates when the viewport metrics |
43 // 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 |
44 // 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 |
45 // again after receiving the callback. | 45 // again after receiving the callback. |
46 RequestMetrics() => (ViewportMetrics metrics); | 46 RequestMetrics() => (ViewportMetrics metrics); |
47 }; | 47 }; |
48 | 48 |
49 interface NativeViewportEventDispatcher { | 49 interface NativeViewportEventDispatcher { |
50 OnEvent(Event event) => (); | 50 OnEvent(Event event) => (); |
51 }; | 51 }; |
52 | |
53 // Service to be used by the Shell to notify NativeViewport of major changes. | |
54 interface NativeViewportShellService { | |
qsr
2015/08/06 14:13:20
Should this be in another place. This should not b
etiennej
2015/08/07 10:16:37
Done.
| |
55 // A new native surface (e.g.: a new activity instance on Android) is | |
56 // available and can be used for rendering. | |
57 NewNativeSurfaceAvailable(); | |
58 }; | |
OLD | NEW |