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

Side by Side Diff: webkit/glue/webclipboard_impl.h

Issue 174367: Change the ChromiumPasteboard to have a notion of an alternate clipboard... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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/api/src/ChromiumBridge.cpp ('k') | webkit/glue/webclipboard_impl.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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef WEBCLIPBOARD_IMPL_H_ 5 #ifndef WEBCLIPBOARD_IMPL_H_
6 #define WEBCLIPBOARD_IMPL_H_ 6 #define WEBCLIPBOARD_IMPL_H_
7 7
8 #include "base/clipboard.h"
8 #include "webkit/api/public/WebClipboard.h" 9 #include "webkit/api/public/WebClipboard.h"
9 10
10 #include <string> 11 #include <string>
11 12
12 namespace webkit_glue { 13 namespace webkit_glue {
13 14
14 class WebClipboardImpl : public WebKit::WebClipboard { 15 class WebClipboardImpl : public WebKit::WebClipboard {
15 public: 16 public:
16 static std::string URLToMarkup(const WebKit::WebURL& url, 17 static std::string URLToMarkup(const WebKit::WebURL& url,
17 const WebKit::WebString& title); 18 const WebKit::WebString& title);
18 static std::string URLToImageMarkup(const WebKit::WebURL& url, 19 static std::string URLToImageMarkup(const WebKit::WebURL& url,
19 const WebKit::WebString& title); 20 const WebKit::WebString& title);
20 21
21 virtual ~WebClipboardImpl() {} 22 virtual ~WebClipboardImpl() {}
22 23
23 // WebClipboard methods: 24 // WebClipboard methods:
24 virtual bool isFormatAvailable(WebKit::WebClipboard::Format); 25 virtual bool isFormatAvailable(Format, Buffer);
25 virtual WebKit::WebString readPlainText(); 26 virtual WebKit::WebString readPlainText(Buffer);
26 virtual WebKit::WebString readHTML(WebKit::WebURL* source_url); 27 virtual WebKit::WebString readHTML(Buffer, WebKit::WebURL* source_url);
27 virtual void writeHTML( 28 virtual void writeHTML(
28 const WebKit::WebString& html_text, 29 const WebKit::WebString& html_text,
29 const WebKit::WebURL& source_url, 30 const WebKit::WebURL& source_url,
30 const WebKit::WebString& plain_text, 31 const WebKit::WebString& plain_text,
31 bool write_smart_paste); 32 bool write_smart_paste);
32 virtual void writeURL( 33 virtual void writeURL(
33 const WebKit::WebURL&, 34 const WebKit::WebURL&,
34 const WebKit::WebString& title); 35 const WebKit::WebString& title);
35 virtual void writeImage( 36 virtual void writeImage(
36 const WebKit::WebImage&, 37 const WebKit::WebImage&,
37 const WebKit::WebURL& source_url, 38 const WebKit::WebURL& source_url,
38 const WebKit::WebString& title); 39 const WebKit::WebString& title);
40
41 private:
42 bool ConvertBufferType(Buffer, Clipboard::Buffer*);
39 }; 43 };
40 44
41 } // namespace webkit_glue 45 } // namespace webkit_glue
42 46
43 #endif // WEBCLIPBOARD_IMPL_H_ 47 #endif // WEBCLIPBOARD_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/api/src/ChromiumBridge.cpp ('k') | webkit/glue/webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698