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

Side by Side Diff: content/common/text_input_client_messages.h

Issue 166903005: mac: Add support for asynchronous dictionary lookup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix 80 columns formatting. Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, hence no include guard 5 // Multiply-included message file, hence no include guard
6 6
7 #include "ipc/ipc_message_macros.h" 7 #include "ipc/ipc_message_macros.h"
8 #include "ui/gfx/range/range.h" 8 #include "ui/gfx/range/range.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 10
11 #if defined(OS_MACOSX) 11 #if defined(OS_MACOSX)
12 #include "content/common/mac/attributed_string_coder.h" 12 #include "content/common/mac/attributed_string_coder.h"
13 #endif 13 #endif
14 14
15 #define IPC_MESSAGE_START TextInputClientMsgStart 15 #define IPC_MESSAGE_START TextInputClientMsgStart
16 #undef IPC_MESSAGE_EXPORT 16 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
18 18
19 // Browser -> Renderer Messages //////////////////////////////////////////////// 19 // Browser -> Renderer Messages ////////////////////////////////////////////////
20 // These messages are sent from the browser to the renderer. Each one has a 20 // These messages are sent from the browser to the renderer. Each one has a
21 // corresponding reply message. 21 // corresponding reply message.
22 //////////////////////////////////////////////////////////////////////////////// 22 ////////////////////////////////////////////////////////////////////////////////
23 23
24 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringAtPoint, gfx::Point)
25
24 // Tells the renderer to send back the character index for a point. 26 // Tells the renderer to send back the character index for a point.
25 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint, 27 IPC_MESSAGE_ROUTED1(TextInputClientMsg_CharacterIndexForPoint,
26 gfx::Point) 28 gfx::Point)
27 29
28 // Tells the renderer to send back the rectangle for a given character range. 30 // Tells the renderer to send back the rectangle for a given character range.
29 IPC_MESSAGE_ROUTED1(TextInputClientMsg_FirstRectForCharacterRange, 31 IPC_MESSAGE_ROUTED1(TextInputClientMsg_FirstRectForCharacterRange,
30 gfx::Range) 32 gfx::Range)
31 33
32 // Tells the renderer to send back the text fragment in a given range. 34 // Tells the renderer to send back the text fragment in a given range.
33 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringForRange, 35 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringForRange,
34 gfx::Range) 36 gfx::Range)
35 37
36 //////////////////////////////////////////////////////////////////////////////// 38 ////////////////////////////////////////////////////////////////////////////////
37 39
38 // Renderer -> Browser Replies ///////////////////////////////////////////////// 40 // Renderer -> Browser Replies /////////////////////////////////////////////////
39 // These messages are sent in reply to the above messages. 41 // These messages are sent in reply to the above messages.
40 //////////////////////////////////////////////////////////////////////////////// 42 ////////////////////////////////////////////////////////////////////////////////
43 IPC_MESSAGE_ROUTED2(TextInputClientReplyMsg_GotStringAtPoint,
44 mac::AttributedStringCoder::EncodedString,
dcheng 2014/03/17 17:45:04 Does this compile on non-Mac platforms? I'm surpri
45 gfx::Point)
41 46
42 // Reply message for TextInputClientMsg_CharacterIndexForPoint. 47 // Reply message for TextInputClientMsg_CharacterIndexForPoint.
43 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint, 48 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint,
44 size_t /* character index */) 49 size_t /* character index */)
45 50
46 // Reply message for TextInputClientMsg_FirstRectForCharacterRange. 51 // Reply message for TextInputClientMsg_FirstRectForCharacterRange.
47 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange, 52 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange,
48 gfx::Rect /* frame rectangle */) 53 gfx::Rect /* frame rectangle */)
49 54
50 #if defined(OS_MACOSX) 55 #if defined(OS_MACOSX)
51 // Reply message for TextInputClientMsg_StringForRange. 56 // Reply message for TextInputClientMsg_StringForRange.
52 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange, 57 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange,
53 mac::AttributedStringCoder::EncodedString) 58 mac::AttributedStringCoder::EncodedString)
54 #endif // defined(OS_MACOSX) 59 #endif // defined(OS_MACOSX)
55 60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698