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

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

Issue 6685063: Fix glue for ClipboardHostMsg_ReadAvailableTypes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 9 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 | « ui/base/clipboard/clipboard_win.cc ('k') | webkit/tools/test_shell/simple_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) 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 // Glue to access the clipboard. 182 // Glue to access the clipboard.
183 183
184 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue. 184 // Get a clipboard that can be used to construct a ScopedClipboardWriterGlue.
185 ui::Clipboard* ClipboardGetClipboard(); 185 ui::Clipboard* ClipboardGetClipboard();
186 186
187 // Tests whether the clipboard contains a certain format 187 // Tests whether the clipboard contains a certain format
188 bool ClipboardIsFormatAvailable(const ui::Clipboard::FormatType& format, 188 bool ClipboardIsFormatAvailable(const ui::Clipboard::FormatType& format,
189 ui::Clipboard::Buffer buffer); 189 ui::Clipboard::Buffer buffer);
190 190
191 // Reads the available types from the clipboard, if available.
192 void ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
193 std::vector<string16>* types,
194 bool* contains_filenames);
195
191 // Reads UNICODE text from the clipboard, if available. 196 // Reads UNICODE text from the clipboard, if available.
192 void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result); 197 void ClipboardReadText(ui::Clipboard::Buffer buffer, string16* result);
193 198
194 // Reads ASCII text from the clipboard, if available. 199 // Reads ASCII text from the clipboard, if available.
195 void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, std::string* result); 200 void ClipboardReadAsciiText(ui::Clipboard::Buffer buffer, std::string* result);
196 201
197 // Reads HTML from the clipboard, if available. 202 // Reads HTML from the clipboard, if available.
198 void ClipboardReadHTML(ui::Clipboard::Buffer buffer, string16* markup, 203 void ClipboardReadHTML(ui::Clipboard::Buffer buffer, string16* markup,
199 GURL* url); 204 GURL* url);
200 205
201 void ClipboardReadImage(ui::Clipboard::Buffer buffer, std::string* data); 206 void ClipboardReadImage(ui::Clipboard::Buffer buffer, std::string* data);
202 207
203 // Reads the available types from the clipboard, if available.
204 bool ClipboardReadAvailableTypes(ui::Clipboard::Buffer buffer,
205 std::vector<string16>* types,
206 bool* contains_filenames);
207
208 // Reads one type of data from the clipboard, if available. 208 // Reads one type of data from the clipboard, if available.
209 bool ClipboardReadData(ui::Clipboard::Buffer buffer, const string16& type, 209 bool ClipboardReadData(ui::Clipboard::Buffer buffer, const string16& type,
210 string16* data, string16* metadata); 210 string16* data, string16* metadata);
211 211
212 // Reads filenames from the clipboard, if available. 212 // Reads filenames from the clipboard, if available.
213 bool ClipboardReadFilenames(ui::Clipboard::Buffer buffer, 213 bool ClipboardReadFilenames(ui::Clipboard::Buffer buffer,
214 std::vector<string16>* filenames); 214 std::vector<string16>* filenames);
215 215
216 // Gets the directory where the application data and libraries exist. This 216 // Gets the directory where the application data and libraries exist. This
217 // may be a versioned subdirectory, or it may be the same directory as the 217 // may be a versioned subdirectory, or it may be the same directory as the
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 bool GetFontTable(int fd, uint32_t table, uint8_t* output, 304 bool GetFontTable(int fd, uint32_t table, uint8_t* output,
305 size_t* output_length); 305 size_t* output_length);
306 #endif 306 #endif
307 307
308 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER --------------------------------- 308 // ---- END FUNCTIONS IMPLEMENTED BY EMBEDDER ---------------------------------
309 309
310 310
311 } // namespace webkit_glue 311 } // namespace webkit_glue
312 312
313 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_ 313 #endif // WEBKIT_GLUE_WEBKIT_GLUE_H_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_win.cc ('k') | webkit/tools/test_shell/simple_clipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698