Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: content/renderer/renderer_clipboard_client.cc

Issue 11225021: Move flash clipboard to the new proxy and add custom format support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698