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

Side by Side Diff: services/ui/public/interfaces/clipboard.mojom

Issue 2339353003: mus: Remove window server access to clipboard and the drag clipboard. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « services/ui/clipboard/clipboard_impl.h ('k') | services/ui/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ui.mojom; 5 module ui.mojom;
6 6
7 const string kMimeTypeHTML = "text/html"; 7 const string kMimeTypeHTML = "text/html";
8 const string kMimeTypeMozillaURL = "text/x-moz-url"; 8 const string kMimeTypeMozillaURL = "text/x-moz-url";
9 const string kMimeTypePNG = "image/png"; 9 const string kMimeTypePNG = "image/png";
10 const string kMimeTypeRTF = "text/rtf"; 10 const string kMimeTypeRTF = "text/rtf";
11 const string kMimeTypeText = "text/plain"; 11 const string kMimeTypeText = "text/plain";
12 const string kMimeTypeURIList = "text/uri-list"; 12 const string kMimeTypeURIList = "text/uri-list";
13 const string kMimeTypeURL = "text/url"; 13 const string kMimeTypeURL = "text/url";
14 14
15 interface Clipboard { 15 interface Clipboard {
16 enum Type { 16 enum Type {
17 COPY_PASTE = 0, 17 COPY_PASTE = 0,
18 SELECTION = 1, 18 SELECTION = 1
19 DRAG = 2
20 }; 19 };
21 20
22 // Returns a sequence number which uniquely identifies clipboard state. 21 // Returns a sequence number which uniquely identifies clipboard state.
23 // Clients are able to assume that the clipboard contents are unchanged as 22 // Clients are able to assume that the clipboard contents are unchanged as
24 // long as this number has not changed. This number is monotonically 23 // long as this number has not changed. This number is monotonically
25 // increasing, is increased when the clipboard state changes, and is 24 // increasing, is increased when the clipboard state changes, and is
26 // provided by Windows, Linux, and Mac. 25 // provided by Windows, Linux, and Mac.
27 [Sync] 26 [Sync]
28 GetSequenceNumber(Type clipboard_type) => (uint64 sequence); 27 GetSequenceNumber(Type clipboard_type) => (uint64 sequence);
29 28
(...skipping 11 matching lines...) Expand all
41 ReadClipboardData(Type clipboard_type, string mime_type) 40 ReadClipboardData(Type clipboard_type, string mime_type)
42 => (uint64 sequence, array<uint8>? data); 41 => (uint64 sequence, array<uint8>? data);
43 42
44 // Writes a set of mime types to the clipboard. This will increment the 43 // Writes a set of mime types to the clipboard. This will increment the
45 // sequence number and return that. In the case of an empty or null map, 44 // sequence number and return that. In the case of an empty or null map,
46 // this will just clear the clipboard. 45 // this will just clear the clipboard.
47 [Sync] 46 [Sync]
48 WriteClipboardData(Type clipboard_type, map<string, array<uint8>>? data) 47 WriteClipboardData(Type clipboard_type, map<string, array<uint8>>? data)
49 => (uint64 sequence); 48 => (uint64 sequence);
50 }; 49 };
OLDNEW
« no previous file with comments | « services/ui/clipboard/clipboard_impl.h ('k') | services/ui/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698