From c033cbe94c504d2346c5e99c1ac12fda41f3f46a Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Tue, 10 Mar 2009 22:01:15 +0000 Subject: This changes the base clipboard class, as accomplishing paste requires that Clipboard::FormatType be IPC-able. The lowest-common denominator of unsigned int, NSString*, and GdkAtom is string, so string it is. (Linux changes by estade.) Review URL: http://codereview.chromium.org/41012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11383 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/text_field.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/views') diff --git a/chrome/views/text_field.cc b/chrome/views/text_field.cc index d0ec3da..10a154c 100644 --- a/chrome/views/text_field.cc +++ b/chrome/views/text_field.cc @@ -761,7 +761,7 @@ void TextField::Edit::OnPaste() { ClipboardService* clipboard = g_browser_process->clipboard_service(); - if (!clipboard->IsFormatAvailable(CF_UNICODETEXT)) + if (!clipboard->IsFormatAvailable(Clipboard::GetPlainTextWFormatType())) return; std::wstring clipboard_str; -- cgit v1.1