blob: b18b727399500e844416a600d8382141cde30dc3 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
[JavaPackage="org.chromium.blink.mojom"]
module blink.mojom;
import "ui/gfx/geometry/mojom/geometry.mojom";
// Mojom representation of some information about a recent unhandled tap in text.
// This data is used to notifying the Browser to show UI for an unhandled tap if needed.
struct UnhandledTapInfo {
gfx.mojom.Point tapped_position_in_viewport;
// These values default to 0, which indicates an undetermined value.
uint32 font_size_in_pixels = 0;
uint32 element_text_run_length = 0;
};
interface UnhandledTapNotifier {
ShowUnhandledTapUIIfNeeded(UnhandledTapInfo unhandled_tap_info);
};