Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: views/controls/textfield/native_textfield_win.cc

Issue 174367: Change the ChromiumPasteboard to have a notion of an alternate clipboard... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_win.cc
===================================================================
--- views/controls/textfield/native_textfield_win.cc (revision 25640)
+++ views/controls/textfield/native_textfield_win.cc (working copy)
@@ -664,11 +664,12 @@
return;
Clipboard* clipboard = ViewsDelegate::views_delegate->GetClipboard();
- if (!clipboard->IsFormatAvailable(Clipboard::GetPlainTextWFormatType()))
+ if (!clipboard->IsFormatAvailable(Clipboard::GetPlainTextWFormatType(),
+ Clipboard::BUFFER_STANDARD))
return;
std::wstring clipboard_str;
- clipboard->ReadText(&clipboard_str);
+ clipboard->ReadText(Clipboard::BUFFER_STANDARD, &clipboard_str);
if (!clipboard_str.empty()) {
std::wstring collapsed(CollapseWhitespace(clipboard_str, false));
if (textfield_->style() & Textfield::STYLE_LOWERCASE)
« no previous file with comments | « chrome/renderer/renderer_glue.cc ('k') | views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698