blob: 8756e0b9864a335f5d34e71697fbc516eeb29fc1 [file] [log] [blame]
// Copyright 2019 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.ui.input;
using fuchsia.ui.views;
/// A method of obtaining global pointer events, regardless of view focus.
/// DEPRECATED: Do not add new uses of this protocol.
protocol PointerCaptureListener {
OnPointerEvent(struct {
event PointerEvent;
}) -> ();
};
/// Injects a listener protocol, along with a ViewRef that defines the coordinate space of the
/// captured pointer events.
/// DEPRECATED: Do not add new uses of this protocol.
@discoverable
protocol PointerCaptureListenerRegistry {
/// This protocol will be subsumed by gesture disambiguation.
@transitional
RegisterListener(resource struct {
listener client_end:PointerCaptureListener;
view_ref fuchsia.ui.views.ViewRef;
}) -> (struct {
success bool;
});
};