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 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 5 #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 6 #define UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 static FormatType GetUrlWFormatType(); | 179 static FormatType GetUrlWFormatType(); |
180 static FormatType GetMozUrlFormatType(); | 180 static FormatType GetMozUrlFormatType(); |
181 static FormatType GetPlainTextFormatType(); | 181 static FormatType GetPlainTextFormatType(); |
182 static FormatType GetPlainTextWFormatType(); | 182 static FormatType GetPlainTextWFormatType(); |
183 static FormatType GetFilenameFormatType(); | 183 static FormatType GetFilenameFormatType(); |
184 static FormatType GetFilenameWFormatType(); | 184 static FormatType GetFilenameWFormatType(); |
185 static FormatType GetWebKitSmartPasteFormatType(); | 185 static FormatType GetWebKitSmartPasteFormatType(); |
186 // Win: MS HTML Format, Other: Generic HTML format | 186 // Win: MS HTML Format, Other: Generic HTML format |
187 static FormatType GetHtmlFormatType(); | 187 static FormatType GetHtmlFormatType(); |
188 static FormatType GetBitmapFormatType(); | 188 static FormatType GetBitmapFormatType(); |
189 static FormatType GetWebCustomDataFormatType(); | |
190 | 189 |
191 // Embeds a pointer to a SharedMemory object pointed to by |bitmap_handle| | 190 // Embeds a pointer to a SharedMemory object pointed to by |bitmap_handle| |
192 // belonging to |process| into a shared bitmap [CBF_SMBITMAP] slot in | 191 // belonging to |process| into a shared bitmap [CBF_SMBITMAP] slot in |
193 // |objects|. The pointer is deleted by DispatchObjects(). | 192 // |objects|. The pointer is deleted by DispatchObjects(). |
194 // | 193 // |
195 // On non-Windows platforms, |process| is ignored. | 194 // On non-Windows platforms, |process| is ignored. |
196 static void ReplaceSharedMemHandle(ObjectMap* objects, | 195 static void ReplaceSharedMemHandle(ObjectMap* objects, |
197 base::SharedMemoryHandle bitmap_handle, | 196 base::SharedMemoryHandle bitmap_handle, |
198 base::ProcessHandle process); | 197 base::ProcessHandle process); |
199 #if defined(OS_WIN) | 198 #if defined(OS_WIN) |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 static const char kMimeTypeText[]; | 281 static const char kMimeTypeText[]; |
283 static const char kMimeTypeHTML[]; | 282 static const char kMimeTypeHTML[]; |
284 static const char kMimeTypePNG[]; | 283 static const char kMimeTypePNG[]; |
285 | 284 |
286 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 285 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
287 }; | 286 }; |
288 | 287 |
289 } // namespace ui | 288 } // namespace ui |
290 | 289 |
291 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 290 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
OLD | NEW |