OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
(...skipping 21 matching lines...) Expand all Loading... |
32 static FORMATETC* GetHtmlFormat(); | 32 static FORMATETC* GetHtmlFormat(); |
33 // MS RTF Format | 33 // MS RTF Format |
34 static FORMATETC* GetRtfFormat(); | 34 static FORMATETC* GetRtfFormat(); |
35 // Firefox text/html | 35 // Firefox text/html |
36 static FORMATETC* GetTextHtmlFormat(); | 36 static FORMATETC* GetTextHtmlFormat(); |
37 static FORMATETC* GetCFHDropFormat(); | 37 static FORMATETC* GetCFHDropFormat(); |
38 static FORMATETC* GetFileDescriptorFormat(); | 38 static FORMATETC* GetFileDescriptorFormat(); |
39 static FORMATETC* GetFileContentFormatZero(); | 39 static FORMATETC* GetFileContentFormatZero(); |
40 static FORMATETC* GetWebKitSmartPasteFormat(); | 40 static FORMATETC* GetWebKitSmartPasteFormat(); |
41 static FORMATETC* GetWebCustomDataFormat(); | 41 static FORMATETC* GetWebCustomDataFormat(); |
| 42 static FORMATETC* GetPepperCustomDataFormat(); |
42 | 43 |
43 ///////////////////////////////////////////////////////////////////////////// | 44 ///////////////////////////////////////////////////////////////////////////// |
44 // These methods check to see if |data_object| has the requested type. | 45 // These methods check to see if |data_object| has the requested type. |
45 // Returns true if it does. | 46 // Returns true if it does. |
46 static bool HasUrl(IDataObject* data_object); | 47 static bool HasUrl(IDataObject* data_object); |
47 static bool HasFilenames(IDataObject* data_object); | 48 static bool HasFilenames(IDataObject* data_object); |
48 static bool HasPlainText(IDataObject* data_object); | 49 static bool HasPlainText(IDataObject* data_object); |
49 static bool HasFileContents(IDataObject* data_object); | 50 static bool HasFileContents(IDataObject* data_object); |
50 static bool HasHtml(IDataObject* data_object); | 51 static bool HasHtml(IDataObject* data_object); |
51 | 52 |
(...skipping 30 matching lines...) Expand all Loading... |
82 static void CFHtmlExtractMetadata(const std::string& cf_html, | 83 static void CFHtmlExtractMetadata(const std::string& cf_html, |
83 std::string* base_url, | 84 std::string* base_url, |
84 size_t* html_start, | 85 size_t* html_start, |
85 size_t* fragment_start, | 86 size_t* fragment_start, |
86 size_t* fragment_end); | 87 size_t* fragment_end); |
87 }; | 88 }; |
88 | 89 |
89 } | 90 } |
90 | 91 |
91 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ | 92 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ |
OLD | NEW |