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

Unified Diff: webkit/glue/scoped_clipboard_writer_glue.h

Issue 8591030: Move clipboard-related webkit_glue embedder functions into a ClipboardClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/clipboard_client.h ('k') | webkit/glue/scoped_clipboard_writer_glue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/scoped_clipboard_writer_glue.h
diff --git a/webkit/glue/scoped_clipboard_writer_glue.h b/webkit/glue/scoped_clipboard_writer_glue.h
index 9b331fcbd6080804d00086d7930425ea9dbb9f25..cee166916504d5a28a209a6cbcbad555ffa9d342 100644
--- a/webkit/glue/scoped_clipboard_writer_glue.h
+++ b/webkit/glue/scoped_clipboard_writer_glue.h
@@ -6,24 +6,18 @@
#define WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_
#include "ui/base/clipboard/scoped_clipboard_writer.h"
-
-namespace base {
-class SharedMemory;
-}
+#include "webkit/glue/clipboard_client.h"
class ScopedClipboardWriterGlue : public ui::ScopedClipboardWriter {
public:
- explicit ScopedClipboardWriterGlue(ui::Clipboard* clipboard)
- : ui::ScopedClipboardWriter(clipboard),
- shared_buf_(NULL) {
- }
+ explicit ScopedClipboardWriterGlue(webkit_glue::ClipboardClient* client);
~ScopedClipboardWriterGlue();
void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);
private:
- base::SharedMemory* shared_buf_;
+ webkit_glue::ClipboardClient::WriteContext* context_;
DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue);
};
« no previous file with comments | « webkit/glue/clipboard_client.h ('k') | webkit/glue/scoped_clipboard_writer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698