| 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 */)
|
|
|