OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 [DartUriBase="mojo/services/clipboard/public/interfaces"] |
5 module mojo; | 6 module mojo; |
6 | 7 |
7 interface Clipboard { | 8 interface Clipboard { |
8 enum Type { | 9 enum Type { |
9 COPY_PASTE = 0, | 10 COPY_PASTE = 0, |
10 SELECTION = 1, | 11 SELECTION = 1, |
11 DRAG = 2 | 12 DRAG = 2 |
12 }; | 13 }; |
13 | 14 |
14 // Mime type constants | 15 // Mime type constants |
(...skipping 19 matching lines...) Expand all Loading... |
34 // GetAvailableFormatMimeTypes(). We don't want to provide one API to return | 35 // GetAvailableFormatMimeTypes(). We don't want to provide one API to return |
35 // the entire clipboard state because the combined size of the clipboard can | 36 // the entire clipboard state because the combined size of the clipboard can |
36 // be megabytes, especially when image data is involved. | 37 // be megabytes, especially when image data is involved. |
37 ReadMimeType(Type clipboard_type, string mime_type) => (array<uint8>? data); | 38 ReadMimeType(Type clipboard_type, string mime_type) => (array<uint8>? data); |
38 | 39 |
39 // Writes a set of mime types to the clipboard. This will increment the | 40 // Writes a set of mime types to the clipboard. This will increment the |
40 // sequence number. In the case of an empty or null map, this will just | 41 // sequence number. In the case of an empty or null map, this will just |
41 // clear the clipboard. | 42 // clear the clipboard. |
42 WriteClipboardData(Type clipboard_type, map<string, array<uint8>>? data); | 43 WriteClipboardData(Type clipboard_type, map<string, array<uint8>>? data); |
43 }; | 44 }; |
OLD | NEW |