diff options
author | japhet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 22:16:05 +0000 |
---|---|---|
committer | japhet@chromium.org <japhet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-08 22:16:05 +0000 |
commit | 65a6150d49263ff6e3135c5631f9ba5eb12823df (patch) | |
tree | 36f5b8624ae02cc69ae29ade9923404f6fec80b3 /base/clipboard_win.cc | |
parent | 9f53c7d5f1ce83bb2025b1797300c6d60dd7d8ff (diff) | |
download | chromium_src-65a6150d49263ff6e3135c5631f9ba5eb12823df.zip chromium_src-65a6150d49263ff6e3135c5631f9ba5eb12823df.tar.gz chromium_src-65a6150d49263ff6e3135c5631f9ba5eb12823df.tar.bz2 |
Roll webkit deps 48155:48185 and remove a couple of passing tests from test_expectations.txt.
Also, merge in http://codereview.chromium.org/174367 (original author: vandebo@chromium.org), which is the downstream half of r48168.
BUG=4360
BUG=21228
BUG=18792
TEST=none
TBR=eroman
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/clipboard_win.cc')
-rw-r--r-- | base/clipboard_win.cc | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/base/clipboard_win.cc b/base/clipboard_win.cc index bd88efa..5b190af 100644 --- a/base/clipboard_win.cc +++ b/base/clipboard_win.cc @@ -397,18 +397,22 @@ void Clipboard::WriteToClipboard(unsigned int format, HANDLE handle) { } } -bool Clipboard::IsFormatAvailable(const Clipboard::FormatType& format) const { +bool Clipboard::IsFormatAvailable(const Clipboard::FormatType& format, + Clipboard::Buffer buffer) const { + DCHECK_EQ(buffer, BUFFER_STANDARD); return ::IsClipboardFormatAvailable(StringToInt(format)) != FALSE; } bool Clipboard::IsFormatAvailableByString( - const std::string& ascii_format) const { + const std::string& ascii_format, Clipboard::Buffer buffer) const { + DCHECK_EQ(buffer, BUFFER_STANDARD); std::wstring wide_format = ASCIIToWide(ascii_format); CLIPFORMAT format = ::RegisterClipboardFormat(wide_format.c_str()); return ::IsClipboardFormatAvailable(format) != FALSE; } -void Clipboard::ReadText(string16* result) const { +void Clipboard::ReadText(Clipboard::Buffer buffer, string16* result) const { + DCHECK_EQ(buffer, BUFFER_STANDARD); if (!result) { NOTREACHED(); return; @@ -429,7 +433,9 @@ void Clipboard::ReadText(string16* result) const { ::GlobalUnlock(data); } -void Clipboard::ReadAsciiText(std::string* result) const { +void Clipboard::ReadAsciiText(Clipboard::Buffer buffer, + std::string* result) const { + DCHECK_EQ(buffer, BUFFER_STANDARD); if (!result) { NOTREACHED(); return; @@ -450,7 +456,9 @@ void Clipboard::ReadAsciiText(std::string* result) const { ::GlobalUnlock(data); } -void Clipboard::ReadHTML(string16* markup, std::string* src_url) const { +void Clipboard::ReadHTML(Clipboard::Buffer buffer, string16* markup, + std::string* src_url) const { + DCHECK_EQ(buffer, BUFFER_STANDARD); if (markup) markup->clear(); |