Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: mojo/services/public/interfaces/clipboard/clipboard.mojom

Issue 611633002: mojom: Add associative arrays to the mojom language. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Suppress pylint warnings instead of making MapKind public. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/services/public/interfaces/clipboard/clipboard.mojom
diff --git a/mojo/services/public/interfaces/clipboard/clipboard.mojom b/mojo/services/public/interfaces/clipboard/clipboard.mojom
index eca47b92392c53f6d117bb8b937990b3d01b60ec..dcbfef218fd1076d86f698f700b89ea424860e7a 100644
--- a/mojo/services/public/interfaces/clipboard/clipboard.mojom
+++ b/mojo/services/public/interfaces/clipboard/clipboard.mojom
@@ -4,13 +4,6 @@
module mojo {
-// A wrapper type which is just a Key/Value pair. Workaround until we get
-// proper maps in mojom.
-struct MimeTypePair {
- string mime_type;
- array<uint8> data;
-};
-
interface Clipboard {
enum Type {
COPY_PASTE = 0,
@@ -44,9 +37,9 @@ interface Clipboard {
ReadMimeType(Type clipboard_type, string mime_type) => (array<uint8>? data);
// Writes a set of mime types to the clipboard. This will increment the
- // sequence number. In the case of an empty or NULL list, this will just
+ // sequence number. In the case of an empty map, this will just
// clear the clipboard.
- WriteClipboardData(Type clipboard_type, array<MimeTypePair>? data);
+ WriteClipboardData(Type clipboard_type, map<string, array<uint8>>? data);
};
} // module mojo

Powered by Google App Engine
This is Rietveld 408576698