Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: ui/base/clipboard/clipboard_util_win.h

Issue 8802004: Enable custom MIME types in web copy/paste. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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();
38 39
39 ///////////////////////////////////////////////////////////////////////////// 40 /////////////////////////////////////////////////////////////////////////////
40 // These methods check to see if |data_object| has the requested type. 41 // These methods check to see if |data_object| has the requested type.
41 // Returns true if it does. 42 // Returns true if it does.
42 static bool HasUrl(IDataObject* data_object); 43 static bool HasUrl(IDataObject* data_object);
43 static bool HasFilenames(IDataObject* data_object); 44 static bool HasFilenames(IDataObject* data_object);
44 static bool HasPlainText(IDataObject* data_object); 45 static bool HasPlainText(IDataObject* data_object);
45 static bool HasFileContents(IDataObject* data_object); 46 static bool HasFileContents(IDataObject* data_object);
46 static bool HasHtml(IDataObject* data_object); 47 static bool HasHtml(IDataObject* data_object);
47 48
(...skipping 20 matching lines...) Expand all
68 static void CFHtmlExtractMetadata(const std::string& cf_html, 69 static void CFHtmlExtractMetadata(const std::string& cf_html,
69 std::string* base_url, 70 std::string* base_url,
70 size_t* html_start, 71 size_t* html_start,
71 size_t* fragment_start, 72 size_t* fragment_start,
72 size_t* fragment_end); 73 size_t* fragment_end);
73 }; 74 };
74 75
75 } 76 }
76 77
77 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ 78 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698