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

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

Issue 8805030: Revert 113040 - 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
« no previous file with comments | « ui/base/clipboard/clipboard_mac.mm ('k') | ui/base/clipboard/clipboard_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
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
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_
OLDNEW
« no previous file with comments | « ui/base/clipboard/clipboard_mac.mm ('k') | ui/base/clipboard/clipboard_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698