OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_WEBKIT_GLUE_H_ | 5 #ifndef WEBKIT_GLUE_WEBKIT_GLUE_H_ |
6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ | 6 #define WEBKIT_GLUE_WEBKIT_GLUE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 // Reads UNICODE text from the clipboard, if available. | 191 // Reads UNICODE text from the clipboard, if available. |
192 void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result); | 192 void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result); |
193 | 193 |
194 // Reads ASCII text from the clipboard, if available. | 194 // Reads ASCII text from the clipboard, if available. |
195 void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, std::string* result); | 195 void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, std::string* result); |
196 | 196 |
197 // Reads HTML from the clipboard, if available. | 197 // Reads HTML from the clipboard, if available. |
198 void ClipboardReadHTML(ui::Clipboard::Buffer buffer, string16* markup, | 198 void ClipboardReadHTML(ui::Clipboard::Buffer buffer, string16* markup, |
199 GURL* url); | 199 GURL* url); |
200 | 200 |
| 201 void ClipboardReadImage(ui::Clipboard::Buffer buffer, std::string* data); |
| 202 |
201 // Reads the available types from the clipboard, if available. | 203 // Reads the available types from the clipboard, if available. |
202 bool ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer, | 204 bool ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer, |
203 std::vector<string16>* types, | 205 std::vector<string16>* types, |
204 bool* contains_filenames); | 206 bool* contains_filenames); |
205 | 207 |
206 // Reads one type of data from the clipboard, if available. | 208 // Reads one type of data from the clipboard, if available. |
207 bool ClipboardReadData(ui::Clipboard::Buffer buffer, const string16& type, | 209 bool ClipboardReadData(ui::Clipboard::Buffer buffer, const string16& type, |
208 string16* data, string16* metadata); | 210 string16* data, string16* metadata); |
209 | 211 |
210 // Reads filenames from the clipboard, if available. | 212 // Reads filenames from the clipboard, if available. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 bool GetFontTable(int fd, uint32_t table, uint8_t* output, | 304 bool GetFontTable(int fd, uint32_t table, uint8_t* output, |
303 size_t* output_length); | 305 size_t* output_length); |
304 #endif | 306 #endif |
305 | 307 |
306 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- | 308 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- |
307 | 309 |
308 | 310 |
309 } // namespace webkit_glue | 311 } // namespace webkit_glue |
310 | 312 |
311 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ | 313 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ |
OLD | NEW |