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

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

Issue 646773005: mojo: Switch the clipboard interface over to using map<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar tests 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
« no previous file with comments | « mojo/services/html_viewer/webclipboard_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..92ef82297be21113f2b1d87f91970e0bbaea56b8 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 or null 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
« no previous file with comments | « mojo/services/html_viewer/webclipboard_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698