| 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 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 static FORMATETC* GetFilenameFormat(); | 28 static FORMATETC* GetFilenameFormat(); |
| 29 static FORMATETC* GetFilenameWFormat(); | 29 static FORMATETC* GetFilenameWFormat(); |
| 30 // MS HTML Format | 30 // MS HTML Format |
| 31 static FORMATETC* GetHtmlFormat(); | 31 static FORMATETC* GetHtmlFormat(); |
| 32 // Firefox text/html | 32 // Firefox text/html |
| 33 static FORMATETC* GetTextHtmlFormat(); | 33 static FORMATETC* GetTextHtmlFormat(); |
| 34 static FORMATETC* GetCFHDropFormat(); | 34 static FORMATETC* GetCFHDropFormat(); |
| 35 static FORMATETC* GetFileDescriptorFormat(); | 35 static FORMATETC* GetFileDescriptorFormat(); |
| 36 static FORMATETC* GetFileContentFormatZero(); | 36 static FORMATETC* GetFileContentFormatZero(); |
| 37 static FORMATETC* GetWebKitSmartPasteFormat(); | 37 static FORMATETC* GetWebKitSmartPasteFormat(); |
| 38 static FORMATETC* GetWebCustomDataFormat(); | |
| 39 | 38 |
| 40 ///////////////////////////////////////////////////////////////////////////// | 39 ///////////////////////////////////////////////////////////////////////////// |
| 41 // These methods check to see if |data_object| has the requested type. | 40 // These methods check to see if |data_object| has the requested type. |
| 42 // Returns true if it does. | 41 // Returns true if it does. |
| 43 static bool HasUrl(IDataObject* data_object); | 42 static bool HasUrl(IDataObject* data_object); |
| 44 static bool HasFilenames(IDataObject* data_object); | 43 static bool HasFilenames(IDataObject* data_object); |
| 45 static bool HasPlainText(IDataObject* data_object); | 44 static bool HasPlainText(IDataObject* data_object); |
| 46 static bool HasFileContents(IDataObject* data_object); | 45 static bool HasFileContents(IDataObject* data_object); |
| 47 static bool HasHtml(IDataObject* data_object); | 46 static bool HasHtml(IDataObject* data_object); |
| 48 | 47 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 69 static void CFHtmlExtractMetadata(const std::string& cf_html, | 68 static void CFHtmlExtractMetadata(const std::string& cf_html, |
| 70 std::string* base_url, | 69 std::string* base_url, |
| 71 size_t* html_start, | 70 size_t* html_start, |
| 72 size_t* fragment_start, | 71 size_t* fragment_start, |
| 73 size_t* fragment_end); | 72 size_t* fragment_end); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } | 75 } |
| 77 | 76 |
| 78 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ | 77 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ |
| OLD | NEW |