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 22 matching lines...) Expand all Loading... |
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 static FORMATETC* GetPepperCustomDataFormat(); |
| 43 static FORMATETC* GetSourceTagFormat(); |
43 | 44 |
44 ///////////////////////////////////////////////////////////////////////////// | 45 ///////////////////////////////////////////////////////////////////////////// |
45 // These methods check to see if |data_object| has the requested type. | 46 // These methods check to see if |data_object| has the requested type. |
46 // Returns true if it does. | 47 // Returns true if it does. |
47 static bool HasUrl(IDataObject* data_object); | 48 static bool HasUrl(IDataObject* data_object); |
48 static bool HasFilenames(IDataObject* data_object); | 49 static bool HasFilenames(IDataObject* data_object); |
49 static bool HasPlainText(IDataObject* data_object); | 50 static bool HasPlainText(IDataObject* data_object); |
50 static bool HasFileContents(IDataObject* data_object); | 51 static bool HasFileContents(IDataObject* data_object); |
51 static bool HasHtml(IDataObject* data_object); | 52 static bool HasHtml(IDataObject* data_object); |
52 | 53 |
(...skipping 30 matching lines...) Expand all Loading... |
83 static void CFHtmlExtractMetadata(const std::string& cf_html, | 84 static void CFHtmlExtractMetadata(const std::string& cf_html, |
84 std::string* base_url, | 85 std::string* base_url, |
85 size_t* html_start, | 86 size_t* html_start, |
86 size_t* fragment_start, | 87 size_t* fragment_start, |
87 size_t* fragment_end); | 88 size_t* fragment_end); |
88 }; | 89 }; |
89 | 90 |
90 } | 91 } |
91 | 92 |
92 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ | 93 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ |
OLD | NEW |