summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webclipboard_impl.h
blob: 6640203f30f3f9b6aced429dcef2bc1669efbca6 (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
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2009 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 WEBCLIPBOARD_IMPL_H_
#define WEBCLIPBOARD_IMPL_H_

#include "third_party/WebKit/WebKit/chromium/public/WebClipboard.h"

namespace webkit_glue {

class WebClipboardImpl : public WebKit::WebClipboard {
 public:
  // WebClipboard methods:
  virtual bool isFormatAvailable(WebKit::WebClipboard::Format);
  virtual WebKit::WebString readPlainText();
  virtual WebKit::WebString readHTML(WebKit::WebURL* source_url);
  virtual void writeHTML(
      const WebKit::WebString& html_text,
      const WebKit::WebURL& source_url,
      const WebKit::WebString& plain_text,
      bool write_smart_paste);
  virtual void writeURL(
      const WebKit::WebURL&,
      const WebKit::WebString& title);
  virtual void writeImage(
      const WebKit::WebImage&,
      const WebKit::WebURL& source_url,
      const WebKit::WebString& title);
};

}  // namespace webkit_glue

#endif  // WEBCLIPBOARD_IMPL_H_