| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ | 7 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ |
| 8 #define UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ | 8 #define UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| 11 #include <shlobj.h> | 11 #include <shlobj.h> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "ui/ui_api.h" | 15 #include "ui/base/ui_export.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 class UI_API ClipboardUtil { | 19 class UI_EXPORT ClipboardUtil { |
| 20 public: | 20 public: |
| 21 ///////////////////////////////////////////////////////////////////////////// | 21 ///////////////////////////////////////////////////////////////////////////// |
| 22 // Clipboard formats. | 22 // Clipboard formats. |
| 23 static FORMATETC* GetUrlFormat(); | 23 static FORMATETC* GetUrlFormat(); |
| 24 static FORMATETC* GetUrlWFormat(); | 24 static FORMATETC* GetUrlWFormat(); |
| 25 static FORMATETC* GetMozUrlFormat(); | 25 static FORMATETC* GetMozUrlFormat(); |
| 26 static FORMATETC* GetPlainTextFormat(); | 26 static FORMATETC* GetPlainTextFormat(); |
| 27 static FORMATETC* GetPlainTextWFormat(); | 27 static FORMATETC* GetPlainTextWFormat(); |
| 28 static FORMATETC* GetFilenameFormat(); | 28 static FORMATETC* GetFilenameFormat(); |
| 29 static FORMATETC* GetFilenameWFormat(); | 29 static FORMATETC* GetFilenameWFormat(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // text/html. | 63 // text/html. |
| 64 static std::string HtmlToCFHtml(const std::string& html, | 64 static std::string HtmlToCFHtml(const std::string& html, |
| 65 const std::string& base_url); | 65 const std::string& base_url); |
| 66 static void CFHtmlToHtml(const std::string& cf_html, std::string* html, | 66 static void CFHtmlToHtml(const std::string& cf_html, std::string* html, |
| 67 std::string* base_url); | 67 std::string* base_url); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } | 70 } |
| 71 | 71 |
| 72 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ | 72 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ |
| OLD | NEW |