summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 17:13:38 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 17:13:38 +0000
commit606876c8312f1c1228a78ff3f28e65806c6b223c (patch)
tree82ea4c16106a07efc758c3f705c14277ba783c76 /webkit/tools/test_shell
parentfe86d110746454b822c42742624eaa8aab740834 (diff)
downloadchromium_src-606876c8312f1c1228a78ff3f28e65806c6b223c.zip
chromium_src-606876c8312f1c1228a78ff3f28e65806c6b223c.tar.gz
chromium_src-606876c8312f1c1228a78ff3f28e65806c6b223c.tar.bz2
Pepper/Flapper: Add IsFormatAvailable() to PPB_Flash_Clipboard.
This requires a WebKit change (see https://bugs.webkit.org/show_bug.cgi?id=56868). BUG=none TEST=none Review URL: http://codereview.chromium.org/6724010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r--webkit/tools/test_shell/mock_webclipboard_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/mock_webclipboard_impl.cc b/webkit/tools/test_shell/mock_webclipboard_impl.cc
index c10a32d..1e00f70 100644
--- a/webkit/tools/test_shell/mock_webclipboard_impl.cc
+++ b/webkit/tools/test_shell/mock_webclipboard_impl.cc
@@ -18,6 +18,9 @@ using WebKit::WebVector;
bool MockWebClipboardImpl::isFormatAvailable(Format format, Buffer buffer) {
switch (format) {
+ case FormatPlainText:
+ return !m_plainText.isEmpty();
+
case FormatHTML:
return !m_htmlText.isEmpty();