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

Side by Side Diff: chrome/common/text_input_client_messages.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: Create AttributedStringCoder Created 9 years, 8 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_TEXT_INPUT_CLIENT_MESSAGES_H_
6 #define CHROME_COMMON_TEXT_INPUT_CLIENT_MESSAGES_H_
7
8 #include "chrome/common/attributed_string_coder.h"
9 #include "ipc/ipc_message_macros.h"
10 #include "ui/base/range/range.h"
11 #include "ui/gfx/rect.h"
12
13 #define IPC_MESSAGE_START TextInputClientMsgStart
14
15 // Browser -> Renderer Messages ////////////////////////////////////////////////
16 // These messages are sent from the browser to the renderer. Each one has a
17 // corresponding reply message.
18 ////////////////////////////////////////////////////////////////////////////////
19
20 // Tells the renderer to send back the character index for a point.
21 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint,
22 gfx::Point)
23
24 // Tells the renderer to send back the rectangle for a given character range.
25 IPC_MESSAGE_ROUTED1(TextInputClientMsg_FirstRectForCharacterRange,
26 ui::Range)
27
28 // Tells the renderer to send back the text fragment in a given range.
29 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringForRange,
30 ui::Range)
31
32 ////////////////////////////////////////////////////////////////////////////////
33
34 // Renderer -> Browser Replies /////////////////////////////////////////////////
35 // These messages are sent in reply to the above messages.
36 ////////////////////////////////////////////////////////////////////////////////
37
38 // Reply message for TextInputClientMsg_CharacterIndexForPoint.
39 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint,
40 uint /* character index */)
41
42 // Reply message for TextInputClientMsg_FirstRectForCharacterRange.
43 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange,
44 gfx::Rect /* frame rectangle */)
45
46 // Reply message for TextInputClientMsg_StringForRange.
47 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange,
48 mac::AttributedStringCoder::EncodedString)
49
50 // Message sent when the IME text composition range changes.
51 IPC_MESSAGE_ROUTED1(TextInputClientViewHostMsg_ImeCompositionRangeChanged,
52 ui::Range)
53
54 #endif // CHROME_COMMON_TEXT_INPUT_CLIENT_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698