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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
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 module mojo { 5 module mojo {
6 6
7 // A wrapper type which is just a Key/Value pair. Workaround until we get 7 // A wrapper type which is just a Key/Value pair. Workaround until we get
8 // proper maps in mojom. 8 // proper maps in mojom.
9 struct MimeTypePair { 9 struct MimeTypePair {
10 string mime_type; 10 string mime_type;
(...skipping 29 matching lines...) Expand all
40 // this may return NULL even if you just verified that it exists with 40 // this may return NULL even if you just verified that it exists with
41 // GetAvailableFormatMimeTypes(). We don't want to provide one API to return 41 // GetAvailableFormatMimeTypes(). We don't want to provide one API to return
42 // the entire clipboard state because the combined size of the clipboard can 42 // the entire clipboard state because the combined size of the clipboard can
43 // be megabytes, especially when image data is involved. 43 // be megabytes, especially when image data is involved.
44 ReadMimeType(Type clipboard_type, string mime_type) => (uint8[]? data); 44 ReadMimeType(Type clipboard_type, string mime_type) => (uint8[]? data);
45 45
46 // Writes a set of mime types to the clipboard. This will increment the 46 // Writes a set of mime types to the clipboard. This will increment the
47 // sequence number. In the case of an empty or NULL list, this will just 47 // sequence number. In the case of an empty or NULL list, this will just
48 // clear the clipboard. 48 // clear the clipboard.
49 WriteClipboardData(Type clipboard_type, MimeTypePair[]? data); 49 WriteClipboardData(Type clipboard_type, MimeTypePair[]? data);
50
51 FakeTestMethod() => (string[string] mapping);
yzshen1 2014/09/27 00:01:58 I think the constraint is that only primitive type
Elliot Glaysher 2014/10/02 19:54:03 Correct. We verify that we don't pass "string?" at
50 }; 52 };
51 53
52 } // module mojo 54 } // module mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698