Chromium Code Reviews| Index: chrome/common/text_input_client_messages_internal.h |
| diff --git a/chrome/common/text_input_client_messages_internal.h b/chrome/common/text_input_client_messages_internal.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c1f7c05ac82a655a75ad6685e0baa168b468f5f8 |
| --- /dev/null |
| +++ b/chrome/common/text_input_client_messages_internal.h |
| @@ -0,0 +1,52 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
jam
2011/02/25 18:08:06
you don't need a .h and _internal.h anymore. that
Robert Sesek
2011/02/25 18:47:13
Done.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/common/common_param_traits.h" |
| +#include "ipc/ipc_message_macros.h" |
| +#include "ui/gfx/point.h" |
|
jam
2011/02/25 18:08:06
nit: if you include rect, no need to include point
Robert Sesek
2011/02/25 18:47:13
Done.
|
| +#include "ui/gfx/rect.h" |
| + |
| +#define IPC_MESSAGE_START TextInputClientMsgStart |
| + |
| +// Browser -> Renderer Messages //////////////////////////////////////////////// |
| +// These messages are sent from the browser to the renderer. Each one has a |
| +// corresponding reply message. |
| +//////////////////////////////////////////////////////////////////////////////// |
| + |
| +// Tells the renderer to send back the character index for a point. |
| +IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint, |
| + gfx::Point) |
| + |
| +// Tells the renderer to send back the rectangle for a given character range. |
| +IPC_MESSAGE_ROUTED2(TextInputClientMsg_FirstRectForCharacterRange, |
| + uint /* location */, |
| + uint /* length */) |
| + |
| +// Tells the renderer to send back the text fragment in a given range. |
| +IPC_MESSAGE_ROUTED2(TextInputClientMsg_StringForRange, |
| + uint /* location */, |
| + uint /* length */) |
| + |
| +//////////////////////////////////////////////////////////////////////////////// |
| + |
| +// Renderer -> Browser Replies ///////////////////////////////////////////////// |
| +// These messages are sent in reply to the above messages. |
| +//////////////////////////////////////////////////////////////////////////////// |
| + |
| +// Reply message for TextInputClientMsg_CharacterIndexForPoint. |
| +IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint, |
| + uint /* character index */) |
| + |
| +// Reply message for TextInputClientMsg_FirstRectForCharacterRange. |
| +IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange, |
| + gfx::Rect /* frame rectangle */) |
| + |
| +// Reply message for TextInputClientMsg_StringForRange. |
| +IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange, |
| + string16 /* NSData-encoded NSAttributedString */) |
| + |
| +// Message sent when the IME text composition range changes. |
| +IPC_MESSAGE_ROUTED2(TextInputClientViewHostMsg_ImeCompositionRangeChanged, |
| + int /* range start */, |
| + int /* range end*/) |