diff options
Diffstat (limited to 'ui/base/clipboard/clipboard_mac.mm')
-rw-r--r-- | ui/base/clipboard/clipboard_mac.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/base/clipboard/clipboard_mac.mm b/ui/base/clipboard/clipboard_mac.mm index e9dff9b..74b73f9 100644 --- a/ui/base/clipboard/clipboard_mac.mm +++ b/ui/base/clipboard/clipboard_mac.mm @@ -185,8 +185,13 @@ void Clipboard::ReadAvailableTypes(Clipboard::Buffer buffer, return; } - // TODO(dcheng): Implement me. types->clear(); + if (IsFormatAvailable(Clipboard::GetPlainTextFormatType(), buffer)) + types->push_back(UTF8ToUTF16(kMimeTypeText)); + if (IsFormatAvailable(Clipboard::GetHtmlFormatType(), buffer)) + types->push_back(UTF8ToUTF16(kMimeTypeHTML)); + if ([NSImage canInitWithPasteboard:GetPasteboard()]) + types->push_back(UTF8ToUTF16(kMimeTypePNG)); *contains_filenames = false; } |