diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-09 01:41:16 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-09 01:41:16 +0000 |
commit | 021506c928c6b699a5ca59cd722517f7be497234 (patch) | |
tree | b71cc5b99b40b356faae2480fb1a800617b5b798 /ui/base | |
parent | ce3d0c03d1e8c6ecd9aa20c6de477fec1ebdfb2f (diff) | |
download | chromium_src-021506c928c6b699a5ca59cd722517f7be497234.zip chromium_src-021506c928c6b699a5ca59cd722517f7be497234.tar.gz chromium_src-021506c928c6b699a5ca59cd722517f7be497234.tar.bz2 |
Implement Clipboard::ReadAvailableTypes for Windows.
BUG=none
TEST=manual testing
Review URL: http://codereview.chromium.org/6820023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base')
-rw-r--r-- | ui/base/clipboard/clipboard_win.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/base/clipboard/clipboard_win.cc b/ui/base/clipboard/clipboard_win.cc index bb50802..d7bc5bb 100644 --- a/ui/base/clipboard/clipboard_win.cc +++ b/ui/base/clipboard/clipboard_win.cc @@ -340,8 +340,13 @@ void Clipboard::ReadAvailableTypes(Clipboard::Buffer buffer, return; } - // TODO(dcheng): Implement me. + const FORMATETC* textFormat = ClipboardUtil::GetPlainTextFormat(); + const FORMATETC* htmlFormat = ClipboardUtil::GetHtmlFormat(); types->clear(); + if (::IsClipboardFormatAvailable(textFormat->cfFormat)) + types->push_back(UTF8ToUTF16(kMimeTypeText)); + if (::IsClipboardFormatAvailable(htmlFormat->cfFormat)) + types->push_back(UTF8ToUTF16(kMimeTypeHTML)); *contains_filenames = false; } |