OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 png_data.size()); | 104 png_data.size()); |
105 } | 105 } |
106 } | 106 } |
107 | 107 |
108 void SimpleClipboardClient::ReadCustomData(ui::Clipboard::Buffer buffer, | 108 void SimpleClipboardClient::ReadCustomData(ui::Clipboard::Buffer buffer, |
109 const string16& type, | 109 const string16& type, |
110 string16* data) { | 110 string16* data) { |
111 GetClipboard()->ReadCustomData(buffer, type, data); | 111 GetClipboard()->ReadCustomData(buffer, type, data); |
112 } | 112 } |
113 | 113 |
| 114 void SimpleClipboardClient::ReadData(const ui::Clipboard::FormatType& format, |
| 115 std::string* data) { |
| 116 GetClipboard()->ReadData(format, data); |
| 117 } |
| 118 |
114 webkit_glue::ClipboardClient::WriteContext* | 119 webkit_glue::ClipboardClient::WriteContext* |
115 SimpleClipboardClient::CreateWriteContext() { | 120 SimpleClipboardClient::CreateWriteContext() { |
116 return NULL; | 121 return NULL; |
117 } | 122 } |
OLD | NEW |