OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/tools/test_shell/simple_clipboard_impl.h" | 5 #include "webkit/tools/test_shell/simple_clipboard_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 bitmap.rowBytes(), | 87 bitmap.rowBytes(), |
88 false, | 88 false, |
89 std::vector<gfx::PNGCodec::Comment>(), | 89 std::vector<gfx::PNGCodec::Comment>(), |
90 Z_BEST_SPEED, | 90 Z_BEST_SPEED, |
91 &png_data)) { | 91 &png_data)) { |
92 data->assign(reinterpret_cast<char*>(vector_as_array(&png_data)), | 92 data->assign(reinterpret_cast<char*>(vector_as_array(&png_data)), |
93 png_data.size()); | 93 png_data.size()); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
| 97 void SimpleClipboardClient::ReadCustomData(ui::Clipboard::Buffer buffer, |
| 98 const string16& type, |
| 99 string16* data) { |
| 100 GetClipboard()->ReadCustomData(buffer, type, data); |
| 101 } |
| 102 |
97 webkit_glue::ClipboardClient::WriteContext* | 103 webkit_glue::ClipboardClient::WriteContext* |
98 SimpleClipboardClient::CreateWriteContext() { | 104 SimpleClipboardClient::CreateWriteContext() { |
99 return NULL; | 105 return NULL; |
100 } | 106 } |
101 | |
OLD | NEW |