| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_ | |
| 6 #define WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_ | |
| 7 | |
| 8 #include "ui/base/clipboard/scoped_clipboard_writer.h" | |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "webkit/glue/clipboard_client.h" | |
| 11 #include "webkit/glue/webkit_glue_export.h" | |
| 12 | |
| 13 namespace webkit_glue { | |
| 14 | |
| 15 class WEBKIT_GLUE_EXPORT ScopedClipboardWriterGlue | |
| 16 : public ui::ScopedClipboardWriter { | |
| 17 public: | |
| 18 explicit ScopedClipboardWriterGlue(webkit_glue::ClipboardClient* client); | |
| 19 | |
| 20 virtual ~ScopedClipboardWriterGlue(); | |
| 21 | |
| 22 void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size); | |
| 23 | |
| 24 private: | |
| 25 scoped_ptr<webkit_glue::ClipboardClient::WriteContext> context_; | |
| 26 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue); | |
| 27 }; | |
| 28 | |
| 29 } // namespace webkit_glue | |
| 30 | |
| 31 #endif // WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_ | |
| OLD | NEW |