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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/clipboard_client.h ('k') | webkit/glue/scoped_clipboard_writer_glue.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_ 5 #ifndef WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_
6 #define WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_ 6 #define WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_
7 7
8 #include "ui/base/clipboard/scoped_clipboard_writer.h" 8 #include "ui/base/clipboard/scoped_clipboard_writer.h"
9 9 #include "webkit/glue/clipboard_client.h"
10 namespace base {
11 class SharedMemory;
12 }
13 10
14 class ScopedClipboardWriterGlue : public ui::ScopedClipboardWriter { 11 class ScopedClipboardWriterGlue : public ui::ScopedClipboardWriter {
15 public: 12 public:
16 explicit ScopedClipboardWriterGlue(ui::Clipboard* clipboard) 13 explicit ScopedClipboardWriterGlue(webkit_glue::ClipboardClient* client);
17 : ui::ScopedClipboardWriter(clipboard),
18 shared_buf_(NULL) {
19 }
20 14
21 ~ScopedClipboardWriterGlue(); 15 ~ScopedClipboardWriterGlue();
22 16
23 void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size); 17 void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);
24 18
25 private: 19 private:
26 base::SharedMemory* shared_buf_; 20 webkit_glue::ClipboardClient::WriteContext* context_;
27 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue); 21 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue);
28 }; 22 };
29 23
30 #endif // WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_ 24 #endif // WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_
OLDNEW
« 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