| 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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 // #include "chrome/common/common_param_traits.h" | |
| 11 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| 12 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 13 #include "ipc/ipc_param_traits.h" | 12 #include "ipc/ipc_param_traits.h" |
| 14 #include "ui/base/clipboard/clipboard.h" | 13 #include "ui/base/clipboard/clipboard.h" |
| 15 | 14 |
| 16 #define IPC_MESSAGE_START ClipboardMsgStart | 15 #define IPC_MESSAGE_START ClipboardMsgStart |
| 17 | 16 |
| 18 IPC_ENUM_TRAITS(ui::Clipboard::Buffer) | 17 IPC_ENUM_TRAITS(ui::Clipboard::Buffer) |
| 19 | 18 |
| 20 // Clipboard IPC messages sent from the renderer to the browser. | 19 // Clipboard IPC messages sent from the renderer to the browser. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 35 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadText, | 34 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadText, |
| 36 ui::Clipboard::Buffer /* buffer */, | 35 ui::Clipboard::Buffer /* buffer */, |
| 37 string16 /* result */) | 36 string16 /* result */) |
| 38 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadAsciiText, | 37 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadAsciiText, |
| 39 ui::Clipboard::Buffer /* buffer */, | 38 ui::Clipboard::Buffer /* buffer */, |
| 40 std::string /* result */) | 39 std::string /* result */) |
| 41 IPC_SYNC_MESSAGE_CONTROL1_2(ClipboardHostMsg_ReadHTML, | 40 IPC_SYNC_MESSAGE_CONTROL1_2(ClipboardHostMsg_ReadHTML, |
| 42 ui::Clipboard::Buffer /* buffer */, | 41 ui::Clipboard::Buffer /* buffer */, |
| 43 string16 /* markup */, | 42 string16 /* markup */, |
| 44 GURL /* url */) | 43 GURL /* url */) |
| 44 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_ReadImage, |
| 45 ui::Clipboard::Buffer /* buffer */, |
| 46 std::string /* PNG-encoded image */) |
| 45 #if defined(OS_MACOSX) | 47 #if defined(OS_MACOSX) |
| 46 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, | 48 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, |
| 47 string16 /* text */) | 49 string16 /* text */) |
| 48 #endif | 50 #endif |
| 49 IPC_SYNC_MESSAGE_CONTROL1_3(ClipboardHostMsg_ReadAvailableTypes, | 51 IPC_SYNC_MESSAGE_CONTROL1_3(ClipboardHostMsg_ReadAvailableTypes, |
| 50 ui::Clipboard::Buffer /* buffer */, | 52 ui::Clipboard::Buffer /* buffer */, |
| 51 bool /* result */, | 53 bool /* result */, |
| 52 std::vector<string16> /* types */, | 54 std::vector<string16> /* types */, |
| 53 bool /* contains filenames */) | 55 bool /* contains filenames */) |
| 54 IPC_SYNC_MESSAGE_CONTROL2_3(ClipboardHostMsg_ReadData, | 56 IPC_SYNC_MESSAGE_CONTROL2_3(ClipboardHostMsg_ReadData, |
| 55 ui::Clipboard::Buffer /* buffer */, | 57 ui::Clipboard::Buffer /* buffer */, |
| 56 string16 /* type */, | 58 string16 /* type */, |
| 57 bool /* succeeded */, | 59 bool /* succeeded */, |
| 58 string16 /* data */, | 60 string16 /* data */, |
| 59 string16 /* metadata */) | 61 string16 /* metadata */) |
| 60 IPC_SYNC_MESSAGE_CONTROL1_2(ClipboardHostMsg_ReadFilenames, | 62 IPC_SYNC_MESSAGE_CONTROL1_2(ClipboardHostMsg_ReadFilenames, |
| 61 ui::Clipboard::Buffer /* buffer */, | 63 ui::Clipboard::Buffer /* buffer */, |
| 62 bool /* result */, | 64 bool /* result */, |
| 63 std::vector<string16> /* filenames */) | 65 std::vector<string16> /* filenames */) |
| OLD | NEW |