blob: 05f11080e86b5212bdfdf10a4bfa44fccab8ca95 [file] [log] [blame]
// 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;
/// The number of physical pixels, per logical pixel, as reported by the client.
4: float64 device_pixel_ratio;
/// A test-specific scheme to gather signal from the client-under-test.
protocol ResponseListener {
/// Notify the test that client-under-test has received expected input.
Respond(PointerData pointer_data);