| 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(); |
| 189 | 190 |
| 190 // Embeds a pointer to a SharedMemory object pointed to by |bitmap_handle| | 191 // Embeds a pointer to a SharedMemory object pointed to by |bitmap_handle| |
| 191 // belonging to |process| into a shared bitmap [CBF_SMBITMAP] slot in | 192 // belonging to |process| into a shared bitmap [CBF_SMBITMAP] slot in |
| 192 // |objects|. The pointer is deleted by DispatchObjects(). | 193 // |objects|. The pointer is deleted by DispatchObjects(). |
| 193 // | 194 // |
| 194 // On non-Windows platforms, |process| is ignored. | 195 // On non-Windows platforms, |process| is ignored. |
| 195 static void ReplaceSharedMemHandle(ObjectMap* objects, | 196 static void ReplaceSharedMemHandle(ObjectMap* objects, |
| 196 base::SharedMemoryHandle bitmap_handle, | 197 base::SharedMemoryHandle bitmap_handle, |
| 197 base::ProcessHandle process); | 198 base::ProcessHandle process); |
| 198 #if defined(OS_WIN) | 199 #if defined(OS_WIN) |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 static const char kMimeTypeText[]; | 282 static const char kMimeTypeText[]; |
| 282 static const char kMimeTypeHTML[]; | 283 static const char kMimeTypeHTML[]; |
| 283 static const char kMimeTypePNG[]; | 284 static const char kMimeTypePNG[]; |
| 284 | 285 |
| 285 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 286 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
| 286 }; | 287 }; |
| 287 | 288 |
| 288 } // namespace ui | 289 } // namespace ui |
| 289 | 290 |
| 290 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 291 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| OLD | NEW |