- From: mbrodesser <notifications@github.com>
- Date: Tue, 19 Oct 2021 02:43:33 -0700
- To: w3c/clipboard-apis <clipboard-apis@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/clipboard-apis/pull/158/review/783038245@github.com>
@mbrodesser commented on this pull request. > - Promise<Blob> getType(DOMString type); - }; + dictionary ClipboardItemOptions { + PresentationStyle presentationStyle = "unspecified"; + }; + </pre> + <p><dfn export for=ClipboardItem id=concept-clipboard-item>ClipboardItem</dfn></p> + The [=ClipboardItem=] object has MIME types that are in the {{ClipboardItem/types}} list, and [=Blob=]s corresponding to the {{ClipboardItem/types}}. + It has a mapping of the MIME types in {{DOMString}} format and a [=Blob=] corresponding to the MIME types that contains the actual payload. + There can be multiple [=ClipboardItem=]s as each [=ClipboardItem=] represents contents of a clipboard, and there can be multiple clipboards supported on a platform such as iOS/iPadOS. > it looks like we could create multiple pasteboards using the create methods defined in Creating and Releasing a Pasteboard section. Yes, interface-wise, that seems possible. However, that seems to not match the use case described at https://github.com/w3c/clipboard-apis/issues/93#issuecomment-853727779. > For each pasteboard, we could add multiple pasteboard items using NSPasteboardType. As mentioned above, that doesn't match the above mentioned use case. A `NSPasteBoard` may contain multiple pasteboard items, see https://developer.apple.com/documentation/appkit/nspasteboard/1529995-pasteboarditems?language=objc. That seems to match the use case. @rniwa > So, I think multiple clipboards is applicable to both Linux and macOS. Apple's above mentioned use case wouldn't work on Linux, because there, a clipboard may contain only at most one item with multiple representations. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/clipboard-apis/pull/158#discussion_r731684896
Received on Tuesday, 19 October 2021 09:43:46 UTC