blob: 52c8eec3bd43328d05cc906bbf4f7e789d4b0b76 [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(PointerEvent event) -> ();
};
/// 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(PointerCaptureListener listener, fuchsia.ui.views.ViewRef view_ref) -> (bool success);
};