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, hence no include guard | 5 // Multiply-included message file, hence no include guard |
6 | 6 |
7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
8 #include "ui/base/range/range.h" | 8 #include "ui/base/range/range.h" |
9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/rect.h" |
10 | 10 |
11 #if defined(OS_MACOSX) | 11 #if defined(OS_MACOSX) |
12 #include "content/common/mac/attributed_string_coder.h" | 12 #include "content/common/mac/attributed_string_coder.h" |
13 #endif | 13 #endif |
14 | 14 |
15 #define IPC_MESSAGE_START TextInputClientMsgStart | 15 #define IPC_MESSAGE_START TextInputClientMsgStart |
16 #undef IPC_MESSAGE_EXPORT | |
17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | |
Nico
2012/03/16 05:48:26
(In this file, the first 4 of 6 messages are used
| |
16 | 18 |
17 // Browser -> Renderer Messages //////////////////////////////////////////////// | 19 // Browser -> Renderer Messages //////////////////////////////////////////////// |
18 // These messages are sent from the browser to the renderer. Each one has a | 20 // These messages are sent from the browser to the renderer. Each one has a |
19 // corresponding reply message. | 21 // corresponding reply message. |
20 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
21 | 23 |
22 // Tells the renderer to send back the character index for a point. | 24 // Tells the renderer to send back the character index for a point. |
23 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint, | 25 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint, |
24 gfx::Point) | 26 gfx::Point) |
25 | 27 |
(...skipping 18 matching lines...) Expand all Loading... | |
44 // Reply message for TextInputClientMsg_FirstRectForCharacterRange. | 46 // Reply message for TextInputClientMsg_FirstRectForCharacterRange. |
45 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange, | 47 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange, |
46 gfx::Rect /* frame rectangle */) | 48 gfx::Rect /* frame rectangle */) |
47 | 49 |
48 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
49 // Reply message for TextInputClientMsg_StringForRange. | 51 // Reply message for TextInputClientMsg_StringForRange. |
50 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange, | 52 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange, |
51 mac::AttributedStringCoder::EncodedString) | 53 mac::AttributedStringCoder::EncodedString) |
52 #endif // defined(OS_MACOSX) | 54 #endif // defined(OS_MACOSX) |
53 | 55 |
OLD | NEW |