| // Copyright 2020 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module crosapi.mojom; |
| |
| // This interface is implemented by Ash-Chrome. |
| // Normally, we'd want all clipboard access to go through the Wayland clipboard |
| // APIs. This currently requires a major refactor to become fully functional, |
| // see https://crbug.com/913422 for details. This is a short-term workaround |
| // that provides synchronous clipboard access. |
| [Stable, Uuid="f2c9e4b9-8782-4b20-a8be-f3b2a3400a38"] |
| interface Clipboard { |
| // Returns the unicode contents of the clipboard copy/paste buffer, UTF-8 |
| // encoded. |
| [Sync] |
| GetCopyPasteText@0() => (string text); |
| }; |