| // Copyright 2020 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| library fuchsia.test.ui; |
| |
| using zx; |
| |
| /// A set of pointer event-related data that is returned to the test for verification. |
| table PointerData { |
| /// The horizontal coordinate reported in the client's coordinate system. |
| 1: float64 local_x; |
| |
| /// The vertical coordinate reported in the client's coordinate system. |
| 2: float64 local_y; |
| |
| /// The monotonic time (ns) the pointer data was received by the client. |
| 3: zx.time time_received; |
| }; |
| |
| /// A test-specific scheme to gather signal from the client-under-test. |
| [Discoverable] |
| protocol ResponseListener { |
| /// Notify the test that client-under-test has received expected input. |
| Respond(PointerData pointer_data); |
| }; |