OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 module arc; |
| 6 |
| 7 interface ClipboardHost { |
| 8 // Tells the host to change its content, usually when the user initiates |
| 9 // a 'copy' action. |
| 10 SetTextContent(string text); |
| 11 |
| 12 // Tells the host to return its content, usually when the user initiates |
| 13 // a 'paste' action or when the instance needs to re-sync its clipboard |
| 14 // content with the host. |
| 15 GetTextContent(); |
| 16 }; |
| 17 |
| 18 interface ClipboardInstance { |
| 19 // Establishes full-duplex communication with the host. |
| 20 Init(ClipboardHost host_ptr); |
| 21 |
| 22 // Pass the result of ClipboardHost.GetTextContent(). |
| 23 OnGetTextContent(string returnedText); |
| 24 }; |
OLD | NEW |