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

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: Fix Clang Created 9 years, 7 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 "ipc/ipc_message_macros.h"
9 #include "ui/base/range/range.h"
10 #include "ui/gfx/rect.h"
11
12 #if defined(OS_MACOSX)
13 #include "chrome/common/attributed_string_coder_mac.h"
14 #endif
15
16 #define IPC_MESSAGE_START TextInputClientMsgStart
17
18 // Browser -> Renderer Messages ////////////////////////////////////////////////
19 // These messages are sent from the browser to the renderer. Each one has a
20 // corresponding reply message.
21 ////////////////////////////////////////////////////////////////////////////////
22
23 // Tells the renderer to send back the character index for a point.
24 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint,
25 gfx::Point)
26
27 // Tells the renderer to send back the rectangle for a given character range.
28 IPC_MESSAGE_ROUTED1(TextInputClientMsg_FirstRectForCharacterRange,
29 ui::Range)
30
31 // Tells the renderer to send back the text fragment in a given range.
32 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringForRange,
33 ui::Range)
34
35 ////////////////////////////////////////////////////////////////////////////////
36
37 // Renderer -> Browser Replies /////////////////////////////////////////////////
38 // These messages are sent in reply to the above messages.
39 ////////////////////////////////////////////////////////////////////////////////
40
41 // Reply message for TextInputClientMsg_CharacterIndexForPoint.
42 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint,
43 size_t /* character index */)
44
45 // Reply message for TextInputClientMsg_FirstRectForCharacterRange.
46 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange,
47 gfx::Rect /* frame rectangle */)
48
49 #if defined(OS_MACOSX)
50 // Reply message for TextInputClientMsg_StringForRange.
51 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange,
52 mac::AttributedStringCoder::EncodedString)
53 #endif // defined(OS_MACOSX)
54
55 #endif // CHROME_COMMON_TEXT_INPUT_CLIENT_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/attributed_string_coder_mac_unittest.mm ('k') | chrome/common/text_input_client_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698