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

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

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 months 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
« no previous file with comments | « content/renderer/renderer_clipboard_client.h ('k') | content/renderer/renderer_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "build/build_config.h"
10
11 #include <string>
12 #include <vector>
13
14 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
15 #include "base/string16.h" 10 #include "base/string16.h"
16 #include "content/common/clipboard_messages.h" 11 #include "content/common/clipboard_messages.h"
17 #include "content/public/renderer/content_renderer_client.h" 12 #include "content/public/renderer/content_renderer_client.h"
18 #include "content/renderer/render_thread_impl.h" 13 #include "content/renderer/render_thread_impl.h"
19 #include "ui/base/clipboard/clipboard.h" 14 #include "ui/base/clipboard/clipboard.h"
20 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
21 #include "webkit/glue/scoped_clipboard_writer_glue.h" 16 #include "webkit/glue/scoped_clipboard_writer_glue.h"
22 17
18 namespace content {
19
23 namespace { 20 namespace {
24 21
25 class RendererClipboardWriteContext : 22 class RendererClipboardWriteContext :
26 public webkit_glue::ClipboardClient::WriteContext { 23 public webkit_glue::ClipboardClient::WriteContext {
27 public: 24 public:
28 RendererClipboardWriteContext(); 25 RendererClipboardWriteContext();
29 virtual ~RendererClipboardWriteContext(); 26 virtual ~RendererClipboardWriteContext();
30 virtual void WriteBitmapFromPixels(ui::Clipboard::ObjectMap* objects, 27 virtual void WriteBitmapFromPixels(ui::Clipboard::ObjectMap* objects,
31 const void* pixels, 28 const void* pixels,
32 const gfx::Size& size); 29 const gfx::Size& size);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 const string16& type, 175 const string16& type,
179 string16* data) { 176 string16* data) {
180 RenderThreadImpl::current()->Send( 177 RenderThreadImpl::current()->Send(
181 new ClipboardHostMsg_ReadCustomData(buffer, type, data)); 178 new ClipboardHostMsg_ReadCustomData(buffer, type, data));
182 } 179 }
183 180
184 webkit_glue::ClipboardClient::WriteContext* 181 webkit_glue::ClipboardClient::WriteContext*
185 RendererClipboardClient::CreateWriteContext() { 182 RendererClipboardClient::CreateWriteContext() {
186 return new RendererClipboardWriteContext; 183 return new RendererClipboardWriteContext;
187 } 184 }
185
186 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_clipboard_client.h ('k') | content/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698