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

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

Issue 9921018: Added RTF support to pepper API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 | « ppapi/tests/test_flash_clipboard.cc ('k') | webkit/plugins/ppapi/ppb_flash_clipboard_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) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ 5 #ifndef WEBKIT_GLUE_CLIPBOARD_CLIENT_H_
6 #define WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ 6 #define WEBKIT_GLUE_CLIPBOARD_CLIENT_H_
7 7
8 #include "ui/base/clipboard/clipboard.h" 8 #include "ui/base/clipboard/clipboard.h"
9 9
10 class GURL; 10 class GURL;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Reads ASCII text from the clipboard, if available. 53 // Reads ASCII text from the clipboard, if available.
54 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer, 54 virtual void ReadAsciiText(ui::Clipboard::Buffer buffer,
55 std::string* result) = 0; 55 std::string* result) = 0;
56 56
57 // Reads HTML from the clipboard, if available. 57 // Reads HTML from the clipboard, if available.
58 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup, 58 virtual void ReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
59 GURL* url, uint32* fragment_start, 59 GURL* url, uint32* fragment_start,
60 uint32* fragment_end) = 0; 60 uint32* fragment_end) = 0;
61 61
62 // Reads RTF from the clipboard, if available.
63 virtual void ReadRTF(ui::Clipboard::Buffer buffer, std::string* result) = 0;
64
62 // Reads and image from the clipboard, if available. 65 // Reads and image from the clipboard, if available.
63 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0; 66 virtual void ReadImage(ui::Clipboard::Buffer buffer, std::string* data) = 0;
64 67
65 // Reads a custom data type from the clipboard, if available. 68 // Reads a custom data type from the clipboard, if available.
66 virtual void ReadCustomData(ui::Clipboard::Buffer buffer, 69 virtual void ReadCustomData(ui::Clipboard::Buffer buffer,
67 const string16& type, 70 const string16& type,
68 string16* data) = 0; 71 string16* data) = 0;
69 72
70 // Creates a context to write clipboard data. May return NULL. 73 // Creates a context to write clipboard data. May return NULL.
71 virtual WriteContext* CreateWriteContext() = 0; 74 virtual WriteContext* CreateWriteContext() = 0;
72 }; 75 };
73 76
74 } // namespace webkit_glue 77 } // namespace webkit_glue
75 78
76 #endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_ 79 #endif // WEBKIT_GLUE_CLIPBOARD_CLIENT_H_
OLDNEW
« no previous file with comments | « ppapi/tests/test_flash_clipboard.cc ('k') | webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698