| 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 // This file provides the embedder's side of random webkit glue functions. | 5 // This file provides the embedder's side of random webkit glue functions. |
| 6 | 6 |
| 7 #include "content/renderer/renderer_clipboard_client.h" | 7 #include "content/renderer/renderer_clipboard_client.h" |
| 8 | 8 |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 void RendererClipboardClient::ReadCustomData(ui::Clipboard::Buffer buffer, | 174 void RendererClipboardClient::ReadCustomData(ui::Clipboard::Buffer buffer, |
| 175 const string16& type, | 175 const string16& type, |
| 176 string16* data) { | 176 string16* data) { |
| 177 RenderThreadImpl::current()->Send( | 177 RenderThreadImpl::current()->Send( |
| 178 new ClipboardHostMsg_ReadCustomData(buffer, type, data)); | 178 new ClipboardHostMsg_ReadCustomData(buffer, type, data)); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void RendererClipboardClient::ReadData(const ui::Clipboard::FormatType& format, |
| 182 std::string* data) { |
| 183 RenderThreadImpl::current()->Send( |
| 184 new ClipboardHostMsg_ReadData(format, data)); |
| 185 } |
| 186 |
| 181 webkit_glue::ClipboardClient::WriteContext* | 187 webkit_glue::ClipboardClient::WriteContext* |
| 182 RendererClipboardClient::CreateWriteContext() { | 188 RendererClipboardClient::CreateWriteContext() { |
| 183 return new RendererClipboardWriteContext; | 189 return new RendererClipboardWriteContext; |
| 184 } | 190 } |
| 185 | 191 |
| 186 } // namespace content | 192 } // namespace content |
| OLD | NEW |