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

Side by Side Diff: content/renderer/scoped_clipboard_writer_glue.h

Issue 574273002: Rewrite clipboard write IPC handling to be easier to understand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document Created 6 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_
6 #define CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_
7
8 #include "ui/base/clipboard/scoped_clipboard_writer.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/renderer/clipboard_client.h"
11
12 namespace content {
13
14 class ScopedClipboardWriterGlue
15 : public ui::ScopedClipboardWriter {
16 public:
17 explicit ScopedClipboardWriterGlue(ClipboardClient* client);
18
19 virtual ~ScopedClipboardWriterGlue();
20
21 void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);
22
23 private:
24 scoped_ptr<ClipboardClient::WriteContext> context_;
25 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue);
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_
OLDNEW
« no previous file with comments | « content/renderer/renderer_clipboard_delegate.cc ('k') | content/renderer/scoped_clipboard_writer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698