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 // 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 "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
11 #include "content/public/common/common_param_traits.h" | 11 #include "content/public/common/common_param_traits.h" |
12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
13 #include "ipc/ipc_param_traits.h" | 13 #include "ipc/ipc_param_traits.h" |
14 #include "ui/base/clipboard/clipboard.h" | 14 #include "ui/base/clipboard/clipboard.h" |
15 | 15 |
16 #define IPC_MESSAGE_START ClipboardMsgStart | 16 #define IPC_MESSAGE_START ClipboardMsgStart |
17 | 17 |
18 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 18 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
19 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 19 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
20 | 20 |
21 namespace IPC { | 21 namespace IPC { |
22 | 22 |
23 template<> | 23 template<> |
24 struct ParamTraits<ui::Clipboard::FormatType> { | 24 struct ParamTraits<ui::Clipboard::FormatType> { |
25 typedef ui::Clipboard::FormatType param_type; | 25 typedef ui::Clipboard::FormatType param_type; |
26 static void Write(Message* m, const param_type& p); | 26 static void Write(Message* m, const param_type& p); |
27 static bool Read(const Message* m, void** iter, param_type* r); | 27 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
28 static void Log(const param_type& p, std::string* l); | 28 static void Log(const param_type& p, std::string* l); |
29 }; | 29 }; |
30 | 30 |
31 } // namespace IPC | 31 } // namespace IPC |
32 | 32 |
33 #endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ | 33 #endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ |
34 | 34 |
35 IPC_ENUM_TRAITS(ui::Clipboard::Buffer) | 35 IPC_ENUM_TRAITS(ui::Clipboard::Buffer) |
36 | 36 |
37 // Clipboard IPC messages sent from the renderer to the browser. | 37 // Clipboard IPC messages sent from the renderer to the browser. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 uint32 /* image size */) | 76 uint32 /* image size */) |
77 IPC_SYNC_MESSAGE_CONTROL2_1(ClipboardHostMsg_ReadCustomData, | 77 IPC_SYNC_MESSAGE_CONTROL2_1(ClipboardHostMsg_ReadCustomData, |
78 ui::Clipboard::Buffer /* buffer */, | 78 ui::Clipboard::Buffer /* buffer */, |
79 string16 /* type */, | 79 string16 /* type */, |
80 string16 /* result */) | 80 string16 /* result */) |
81 | 81 |
82 #if defined(OS_MACOSX) | 82 #if defined(OS_MACOSX) |
83 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, | 83 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, |
84 string16 /* text */) | 84 string16 /* text */) |
85 #endif | 85 #endif |
OLD | NEW |