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