OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef BASE_CLIPBOARD_H_ | 5 #ifndef BASE_CLIPBOARD_H_ |
6 #define BASE_CLIPBOARD_H_ | 6 #define BASE_CLIPBOARD_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void ReadFiles(std::vector<std::wstring>* files) const; | 113 void ReadFiles(std::vector<std::wstring>* files) const; |
114 | 114 |
115 // Get format Identifiers for various types. | 115 // Get format Identifiers for various types. |
116 static FormatType GetUrlFormatType(); | 116 static FormatType GetUrlFormatType(); |
117 static FormatType GetUrlWFormatType(); | 117 static FormatType GetUrlWFormatType(); |
118 static FormatType GetMozUrlFormatType(); | 118 static FormatType GetMozUrlFormatType(); |
119 static FormatType GetPlainTextFormatType(); | 119 static FormatType GetPlainTextFormatType(); |
120 static FormatType GetPlainTextWFormatType(); | 120 static FormatType GetPlainTextWFormatType(); |
121 static FormatType GetFilenameFormatType(); | 121 static FormatType GetFilenameFormatType(); |
122 static FormatType GetFilenameWFormatType(); | 122 static FormatType GetFilenameWFormatType(); |
| 123 static FormatType GetWebKitSmartPasteFormatType(); |
123 // Win: MS HTML Format, Other: Generic HTML format | 124 // Win: MS HTML Format, Other: Generic HTML format |
124 static FormatType GetHtmlFormatType(); | 125 static FormatType GetHtmlFormatType(); |
125 #if defined(OS_WIN) | 126 #if defined(OS_WIN) |
126 static FormatType GetBitmapFormatType(); | 127 static FormatType GetBitmapFormatType(); |
127 // Firefox text/html | 128 // Firefox text/html |
128 static FormatType GetTextHtmlFormatType(); | 129 static FormatType GetTextHtmlFormatType(); |
129 static FormatType GetCFHDropFormatType(); | 130 static FormatType GetCFHDropFormatType(); |
130 static FormatType GetFileDescriptorFormatType(); | 131 static FormatType GetFileDescriptorFormatType(); |
131 static FormatType GetFileContentFormatZeroType(); | 132 static FormatType GetFileContentFormatZeroType(); |
132 static FormatType GetWebKitSmartPasteFormatType(); | |
133 #endif | 133 #endif |
134 | 134 |
135 private: | 135 private: |
136 void WriteText(const char* text_data, size_t text_len); | 136 void WriteText(const char* text_data, size_t text_len); |
137 | 137 |
138 void WriteHTML(const char* markup_data, | 138 void WriteHTML(const char* markup_data, |
139 size_t markup_len, | 139 size_t markup_len, |
140 const char* url_data, | 140 const char* url_data, |
141 size_t url_len); | 141 size_t url_len); |
142 | 142 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 TargetMap* clipboard_data_; | 202 TargetMap* clipboard_data_; |
203 GtkClipboard* clipboard_; | 203 GtkClipboard* clipboard_; |
204 #endif | 204 #endif |
205 | 205 |
206 DISALLOW_EVIL_CONSTRUCTORS(Clipboard); | 206 DISALLOW_EVIL_CONSTRUCTORS(Clipboard); |
207 }; | 207 }; |
208 | 208 |
209 #endif // BASE_CLIPBOARD_H_ | 209 #endif // BASE_CLIPBOARD_H_ |
210 | 210 |
OLD | NEW |