Chromium Code Reviews

Unified Diff: chrome/common/render_messages_internal.h

Issue 9154: Rewrote the clipboard API to be more concurrent. Added a helper class to make... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/common/common.vcproj ('k') | chrome/renderer/renderer_glue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
===================================================================
--- chrome/common/render_messages_internal.h (revision 4189)
+++ chrome/common/render_messages_internal.h (working copy)
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/clipboard.h"
#include "base/gfx/rect.h"
#include "base/shared_memory.h"
#include "chrome/common/ipc_message_macros.h"
@@ -782,21 +783,15 @@
std::wstring /* plugin_path */)
// Clipboard IPC messages
- IPC_MESSAGE_CONTROL0(ViewHostMsg_ClipboardClear)
- IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardWriteText,
- std::wstring /* text */)
- IPC_MESSAGE_CONTROL2(ViewHostMsg_ClipboardWriteHTML,
- std::wstring /* html */,
- GURL /* url */)
- IPC_MESSAGE_CONTROL2(ViewHostMsg_ClipboardWriteBookmark,
- std::wstring /* title */,
- GURL /* url */)
- // This message is synchronized so that the renderer known when it is safe to
+
+ // This message is used when the object list does not contain a bitmap.
+ IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardWriteObjectsAsync,
+ Clipboard::ObjectMap /* objects */)
+ // This message is used when the object list contains a bitmap.
+ // It is synchronized so that the renderer knows when it is safe to
// free the shared memory used to transfer the bitmap.
- IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_ClipboardWriteBitmap,
- SharedMemoryHandle /* bitmap */,
- gfx::Size /* size */)
- IPC_MESSAGE_CONTROL0(ViewHostMsg_ClipboardWriteWebSmartPaste)
+ IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_ClipboardWriteObjectsSync,
+ Clipboard::ObjectMap /* objects */)
IPC_SYNC_MESSAGE_CONTROL1_1(ViewHostMsg_ClipboardIsFormatAvailable,
int /* format */,
bool /* result */)
« no previous file with comments | « chrome/common/common.vcproj ('k') | chrome/renderer/renderer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine