Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / renderer / scoped_clipboard_writer_glue.h
blobd64ae63eee0b3e93168c407cafce59df23c40104
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.
5 #ifndef CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_
6 #define CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_
8 #include "ui/base/clipboard/scoped_clipboard_writer.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/renderer/clipboard_client.h"
12 namespace content {
14 class ScopedClipboardWriterGlue
15 : public ui::ScopedClipboardWriter {
16 public:
17 explicit ScopedClipboardWriterGlue(ClipboardClient* client);
19 virtual ~ScopedClipboardWriterGlue();
21 void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);
23 private:
24 scoped_ptr<ClipboardClient::WriteContext> context_;
25 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue);
28 } // namespace content
30 #endif // CONTENT_RENDERER_SCOPED_CLIPBOARD_WRITER_GLUE_H_