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

Side by Side Diff: chrome/common/text_input_client_messages_internal.h

Issue 6289009: [Mac] Implement the system dictionary popup by implementing NSTextInput methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit test Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // 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.
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"
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.
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*/)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698