Index: ui/base/clipboard/clipboard_android.cc |
diff --git a/ui/base/clipboard/clipboard_android.cc b/ui/base/clipboard/clipboard_android.cc |
index abeb9e92ffcb63c2f96658173db838c7450bde50..b9298b482732ab962259c9e0a3d3a53d8f3994aa 100644 |
--- a/ui/base/clipboard/clipboard_android.cc |
+++ b/ui/base/clipboard/clipboard_android.cc |
@@ -311,9 +311,21 @@ void ClipboardAndroid::ReadAvailableTypes(ClipboardType type, |
return; |
} |
- NOTIMPLEMENTED(); |
- |
types->clear(); |
+ |
+ // would be nice to ask the ClipboardMap to enumerate the types it supports, |
+ // rather than hardcode the list here. |
+ if (IsFormatAvailable(Clipboard::GetPlainTextFormatType(), type)) |
+ types->push_back(base::UTF8ToUTF16(kMimeTypeText)); |
+ if (IsFormatAvailable(Clipboard::GetHtmlFormatType(), type)) |
+ types->push_back(base::UTF8ToUTF16(kMimeTypeHTML)); |
+ |
+ // these formats aren't supported by the ClipboardMap currently, but might |
+ // be one day? |
+ if (IsFormatAvailable(Clipboard::GetRtfFormatType(), type)) |
+ types->push_back(base::UTF8ToUTF16(kMimeTypeRTF)); |
+ if (IsFormatAvailable(Clipboard::GetBitmapFormatType(), type)) |
+ types->push_back(base::UTF8ToUTF16(kMimeTypePNG)); |
*contains_filenames = false; |
} |