Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: content/common/clipboard_messages.h

Issue 1162373002: Make some editing/selection functions accessible to c/b/renderer_host/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Used scoped_refptr Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/shared_memory.h" 11 #include "base/memory/shared_memory.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/clipboard_format.h" 13 #include "content/common/clipboard_format.h"
14 #include "content/public/common/common_param_traits.h" 14 #include "content/public/common/common_param_traits.h"
15 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
16 #include "ui/base/clipboard/clipboard.h" 16 #include "ui/base/clipboard/clipboard.h"
17 17
18 // Singly-included section for types and/or struct declarations. 18 // Singly-included section for types and/or struct declarations.
19 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ 19 #ifndef CONTENT_COMMON_CLIPBOARD_MESSAGES_H_
20 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ 20 #define CONTENT_COMMON_CLIPBOARD_MESSAGES_H_
21 21
22 // Custom data consists of arbitrary MIME types an untrusted sender wants to 22 // Custom data consists of arbitrary MIME types an untrusted sender wants to
23 // write to the clipboard. Note that exposing a general interface to do this is 23 // write to the clipboard. Note that exposing a general interface to do this is
24 // dangerous--an untrusted sender could cause a DoS or code execution. 24 // dangerous--an untrusted sender could cause a DoS or code execution.
25 typedef std::map<base::string16, base::string16> CustomDataMap; 25 typedef std::map<base::string16, base::string16> CustomDataMap;
26 26
27 #endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_ 27 #endif // CONTENT_COMMON_CLIPBOARD_MESSAGES_H_
28 28
29 #undef IPC_MESSAGE_EXPORT
30 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
31
29 #define IPC_MESSAGE_START ClipboardMsgStart 32 #define IPC_MESSAGE_START ClipboardMsgStart
30 33
31 IPC_ENUM_TRAITS_MAX_VALUE(content::ClipboardFormat, 34 IPC_ENUM_TRAITS_MAX_VALUE(content::ClipboardFormat,
32 content::CLIPBOARD_FORMAT_LAST) 35 content::CLIPBOARD_FORMAT_LAST)
33 IPC_ENUM_TRAITS_MAX_VALUE(ui::ClipboardType, ui::CLIPBOARD_TYPE_LAST) 36 IPC_ENUM_TRAITS_MAX_VALUE(ui::ClipboardType, ui::CLIPBOARD_TYPE_LAST)
34 37
35 // Clipboard IPC messages sent from the renderer to the browser. 38 // Clipboard IPC messages sent from the renderer to the browser.
36 39
37 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_GetSequenceNumber, 40 IPC_SYNC_MESSAGE_CONTROL1_1(ClipboardHostMsg_GetSequenceNumber,
38 ui::ClipboardType /* type */, 41 ui::ClipboardType /* type */,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage, 97 IPC_SYNC_MESSAGE_CONTROL3_0(ClipboardHostMsg_WriteImage,
95 ui::ClipboardType /* type */, 98 ui::ClipboardType /* type */,
96 gfx::Size /* size */, 99 gfx::Size /* size */,
97 base::SharedMemoryHandle /* bitmap handle */) 100 base::SharedMemoryHandle /* bitmap handle */)
98 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */) 101 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_CommitWrite, ui::ClipboardType /* type */)
99 102
100 #if defined(OS_MACOSX) 103 #if defined(OS_MACOSX)
101 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync, 104 IPC_MESSAGE_CONTROL1(ClipboardHostMsg_FindPboardWriteStringAsync,
102 base::string16 /* text */) 105 base::string16 /* text */)
103 #endif 106 #endif
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698