| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 static const FormatType& GetMozUrlFormatType(); | 279 static const FormatType& GetMozUrlFormatType(); |
| 280 static const FormatType& GetPlainTextFormatType(); | 280 static const FormatType& GetPlainTextFormatType(); |
| 281 static const FormatType& GetPlainTextWFormatType(); | 281 static const FormatType& GetPlainTextWFormatType(); |
| 282 static const FormatType& GetFilenameFormatType(); | 282 static const FormatType& GetFilenameFormatType(); |
| 283 static const FormatType& GetFilenameWFormatType(); | 283 static const FormatType& GetFilenameWFormatType(); |
| 284 static const FormatType& GetWebKitSmartPasteFormatType(); | 284 static const FormatType& GetWebKitSmartPasteFormatType(); |
| 285 // Win: MS HTML Format, Other: Generic HTML format | 285 // Win: MS HTML Format, Other: Generic HTML format |
| 286 static const FormatType& GetHtmlFormatType(); | 286 static const FormatType& GetHtmlFormatType(); |
| 287 static const FormatType& GetRtfFormatType(); | 287 static const FormatType& GetRtfFormatType(); |
| 288 static const FormatType& GetBitmapFormatType(); | 288 static const FormatType& GetBitmapFormatType(); |
| 289 // TODO(raymes): Unify web custom data and pepper custom data: |
| 290 // crbug.com/158399. |
| 289 static const FormatType& GetWebCustomDataFormatType(); | 291 static const FormatType& GetWebCustomDataFormatType(); |
| 292 static const FormatType& GetPepperCustomDataFormatType(); |
| 290 | 293 |
| 291 // Embeds a pointer to a SharedMemory object pointed to by |bitmap_handle| | 294 // Embeds a pointer to a SharedMemory object pointed to by |bitmap_handle| |
| 292 // belonging to |process| into a shared bitmap [CBF_SMBITMAP] slot in | 295 // belonging to |process| into a shared bitmap [CBF_SMBITMAP] slot in |
| 293 // |objects|. The pointer is deleted by DispatchObjects(). | 296 // |objects|. The pointer is deleted by DispatchObjects(). |
| 294 // | 297 // |
| 295 // On non-Windows platforms, |process| is ignored. | 298 // On non-Windows platforms, |process| is ignored. |
| 296 static void ReplaceSharedMemHandle(ObjectMap* objects, | 299 static void ReplaceSharedMemHandle(ObjectMap* objects, |
| 297 base::SharedMemoryHandle bitmap_handle, | 300 base::SharedMemoryHandle bitmap_handle, |
| 298 base::ProcessHandle process); | 301 base::ProcessHandle process); |
| 299 #if defined(OS_WIN) | 302 #if defined(OS_WIN) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 class AuraX11Details; | 392 class AuraX11Details; |
| 390 scoped_ptr<AuraX11Details> aurax11_details_; | 393 scoped_ptr<AuraX11Details> aurax11_details_; |
| 391 #endif | 394 #endif |
| 392 | 395 |
| 393 DISALLOW_COPY_AND_ASSIGN(Clipboard); | 396 DISALLOW_COPY_AND_ASSIGN(Clipboard); |
| 394 }; | 397 }; |
| 395 | 398 |
| 396 } // namespace ui | 399 } // namespace ui |
| 397 | 400 |
| 398 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ | 401 #endif // UI_BASE_CLIPBOARD_CLIPBOARD_H_ |
| OLD | NEW |