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

Side by Side Diff: base/clipboard_util.h

Issue 11247: Remove cf_html from webdropdata.h. This is windows (Closed)
Patch Set: fix feedback Created 12 years, 1 month 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
« no previous file with comments | « base/clipboard.h ('k') | base/clipboard_util.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Some helper functions for working with the clipboard and IDataObjects. 5 // Some helper functions for working with the clipboard and IDataObjects.
6 6
7 #include <shlobj.h> 7 #include <shlobj.h>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 static bool HasPlainText(IDataObject* data_object); 36 static bool HasPlainText(IDataObject* data_object);
37 37
38 ///////////////////////////////////////////////////////////////////////////// 38 /////////////////////////////////////////////////////////////////////////////
39 // Helper methods to extract information from an IDataObject. These methods 39 // Helper methods to extract information from an IDataObject. These methods
40 // return true if the requested data type is found in |data_object|. 40 // return true if the requested data type is found in |data_object|.
41 static bool GetUrl(IDataObject* data_object, 41 static bool GetUrl(IDataObject* data_object,
42 std::wstring* url, std::wstring* title); 42 std::wstring* url, std::wstring* title);
43 static bool GetFilenames(IDataObject* data_object, 43 static bool GetFilenames(IDataObject* data_object,
44 std::vector<std::wstring>* filenames); 44 std::vector<std::wstring>* filenames);
45 static bool GetPlainText(IDataObject* data_object, std::wstring* plain_text); 45 static bool GetPlainText(IDataObject* data_object, std::wstring* plain_text);
46 static bool GetCFHtml(IDataObject* data_object, std::wstring* cf_html); 46 static bool GetHtml(IDataObject* data_object, std::wstring* text_html,
47 static bool GetTextHtml(IDataObject* data_object, std::wstring* text_html); 47 std::string* base_url);
48 static bool GetFileContents(IDataObject* data_object, 48 static bool GetFileContents(IDataObject* data_object,
49 std::wstring* filename, 49 std::wstring* filename,
50 std::string* file_contents); 50 std::string* file_contents);
51
52 // A helper method for converting between MS CF_HTML format and plain
53 // text/html.
54 static std::string HtmlToCFHtml(const std::string& html,
55 const std::string& base_url);
56 static void CFHtmlToHtml(const std::string& cf_html, std::string* html,
57 std::string* base_url);
51 }; 58 };
52
OLDNEW
« no previous file with comments | « base/clipboard.h ('k') | base/clipboard_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698