| OLD | NEW |
| 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 #ifndef BASE_CLIPBOARD_UTIL_H_ |
| 8 #define BASE_CLIPBOARD_UTIL_H_ |
| 9 |
| 7 #include <shlobj.h> | 10 #include <shlobj.h> |
| 8 #include <string> | 11 #include <string> |
| 9 #include <vector> | 12 #include <vector> |
| 10 | 13 |
| 11 class ClipboardUtil { | 14 class ClipboardUtil { |
| 12 public: | 15 public: |
| 13 ///////////////////////////////////////////////////////////////////////////// | 16 ///////////////////////////////////////////////////////////////////////////// |
| 14 // Clipboard formats. | 17 // Clipboard formats. |
| 15 static FORMATETC* GetUrlFormat(); | 18 static FORMATETC* GetUrlFormat(); |
| 16 static FORMATETC* GetUrlWFormat(); | 19 static FORMATETC* GetUrlWFormat(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 std::wstring* filename, | 52 std::wstring* filename, |
| 50 std::string* file_contents); | 53 std::string* file_contents); |
| 51 | 54 |
| 52 // A helper method for converting between MS CF_HTML format and plain | 55 // A helper method for converting between MS CF_HTML format and plain |
| 53 // text/html. | 56 // text/html. |
| 54 static std::string HtmlToCFHtml(const std::string& html, | 57 static std::string HtmlToCFHtml(const std::string& html, |
| 55 const std::string& base_url); | 58 const std::string& base_url); |
| 56 static void CFHtmlToHtml(const std::string& cf_html, std::string* html, | 59 static void CFHtmlToHtml(const std::string& cf_html, std::string* html, |
| 57 std::string* base_url); | 60 std::string* base_url); |
| 58 }; | 61 }; |
| 62 |
| 63 #endif // BASE_CLIPBOARD_UTIL_H_ |
| OLD | NEW |