mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
27 lines
944 B
Plaintext
27 lines
944 B
Plaintext
// Copyright 2017 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.
|
|
|
|
module ash.mojom;
|
|
|
|
import "ui/gfx/geometry/mojo/geometry.mojom";
|
|
|
|
// Interface for ash client (e.g. Chrome) to connect to the highlighter
|
|
// controller, the component implementing on-screen content selection
|
|
// with a stylus.
|
|
interface HighlighterController {
|
|
// Sets the client interface.
|
|
SetClient(HighlighterControllerClient client);
|
|
};
|
|
|
|
// Interface for ash to notify the client (e.g. Chrome) about the highlighter
|
|
// selection and state.
|
|
interface HighlighterControllerClient {
|
|
// Called when when a valid selection is made. Selected rectangle is in
|
|
// screen coordinates, clipped to screen bounds if necessary.
|
|
HandleSelection(gfx.mojom.Rect rect);
|
|
|
|
// Called when the highlighter tool becomes enabled or disabled.
|
|
HandleEnabledStateChange(bool enabled);
|
|
};
|