summaryrefslogtreecommitdiffstats
path: root/webkit/glue/scoped_clipboard_writer_glue.h
blob: cee166916504d5a28a209a6cbcbad555ffa9d342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_
#define WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_

#include "ui/base/clipboard/scoped_clipboard_writer.h"
#include "webkit/glue/clipboard_client.h"

class ScopedClipboardWriterGlue : public ui::ScopedClipboardWriter {
 public:
  explicit ScopedClipboardWriterGlue(webkit_glue::ClipboardClient* client);

  ~ScopedClipboardWriterGlue();

  void WriteBitmapFromPixels(const void* pixels, const gfx::Size& size);

 private:
  webkit_glue::ClipboardClient::WriteContext* context_;
  DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriterGlue);
};

#endif  // WEBKIT_GLUE_SCOPED_CLIPBOARD_WRITER_GLUE_H_