OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/common/common_param_traits.h" |
| 6 #include "ipc/ipc_message_macros.h" |
| 7 #include "ui/gfx/point.h" |
| 8 #include "ui/gfx/rect.h" |
| 9 |
| 10 #define IPC_MESSAGE_START TextInputClientMsgStart |
| 11 |
| 12 // Browser -> Renderer Messages //////////////////////////////////////////////// |
| 13 // These messages are sent from the browser to the renderer. Each one has a |
| 14 // corresponding reply message. |
| 15 //////////////////////////////////////////////////////////////////////////////// |
| 16 |
| 17 // Tells the renderer to send back the character index for a point. |
| 18 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint, |
| 19 gfx::Point) |
| 20 |
| 21 // Tells the renderer to send back the rectangle for a given character range. |
| 22 IPC_MESSAGE_ROUTED2(TextInputClientMsg_FirstRectForCharacterRange, |
| 23 uint /* location */, |
| 24 uint /* length */) |
| 25 |
| 26 // Tells the renderer to send back the text fragment in a given range. |
| 27 IPC_MESSAGE_ROUTED2(TextInputClientMsg_StringForRange, |
| 28 uint /* location */, |
| 29 uint /* length */) |
| 30 |
| 31 //////////////////////////////////////////////////////////////////////////////// |
| 32 |
| 33 // Renderer -> Browser Replies ///////////////////////////////////////////////// |
| 34 // These messages are sent in reply to the above messages. |
| 35 //////////////////////////////////////////////////////////////////////////////// |
| 36 |
| 37 // Reply message for TextInputClientMsg_CharacterIndexForPoint. |
| 38 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint, |
| 39 uint /* character index */) |
| 40 |
| 41 // Reply message for TextInputClientMsg_FirstRectForCharacterRange. |
| 42 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange, |
| 43 gfx::Rect /* frame rectangle */) |
| 44 |
| 45 // Reply message for TextInputClientMsg_StringForRange. |
| 46 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange, |
| 47 string16 /* NSData-encoded NSAttributedString */) |
| 48 |
| 49 // Message sent when the IME text composition range changes. |
| 50 IPC_MESSAGE_ROUTED2(TextInputClientViewHostMsg_ImeCompositionRangeChanged, |
| 51 int /* range start */, |
| 52 int /* range end*/) |
OLD | NEW |