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

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 for dcheng and rebase. 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
(...skipping 15 matching lines...) Expand all
26 gfx::Point) 26 gfx::Point)
27 27
28 // Tells the renderer to send back the rectangle for a given character range. 28 // Tells the renderer to send back the rectangle for a given character range.
29 IPC_MESSAGE_ROUTED1(TextInputClientMsg_FirstRectForCharacterRange, 29 IPC_MESSAGE_ROUTED1(TextInputClientMsg_FirstRectForCharacterRange,
30 gfx::Range) 30 gfx::Range)
31 31
32 // Tells the renderer to send back the text fragment in a given range. 32 // Tells the renderer to send back the text fragment in a given range.
33 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringForRange, 33 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringForRange,
34 gfx::Range) 34 gfx::Range)
35 35
36 // Tells the renderer to send back the word under the given point and its
37 // baseline point.
38 IPC_MESSAGE_ROUTED1(TextInputClientMsg_StringAtPoint, gfx::Point)
39
36 //////////////////////////////////////////////////////////////////////////////// 40 ////////////////////////////////////////////////////////////////////////////////
37 41
38 // Renderer -> Browser Replies ///////////////////////////////////////////////// 42 // Renderer -> Browser Replies /////////////////////////////////////////////////
39 // These messages are sent in reply to the above messages. 43 // These messages are sent in reply to the above messages.
40 //////////////////////////////////////////////////////////////////////////////// 44 ////////////////////////////////////////////////////////////////////////////////
41 45
42 // Reply message for TextInputClientMsg_CharacterIndexForPoint. 46 // Reply message for TextInputClientMsg_CharacterIndexForPoint.
43 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint, 47 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotCharacterIndexForPoint,
44 size_t /* character index */) 48 size_t /* character index */)
45 49
46 // Reply message for TextInputClientMsg_FirstRectForCharacterRange. 50 // Reply message for TextInputClientMsg_FirstRectForCharacterRange.
47 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange, 51 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotFirstRectForRange,
48 gfx::Rect /* frame rectangle */) 52 gfx::Rect /* frame rectangle */)
49 53
50 #if defined(OS_MACOSX) 54 #if defined(OS_MACOSX)
51 // Reply message for TextInputClientMsg_StringForRange. 55 // Reply message for TextInputClientMsg_StringForRange.
52 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange, 56 IPC_MESSAGE_ROUTED1(TextInputClientReplyMsg_GotStringForRange,
53 mac::AttributedStringCoder::EncodedString) 57 mac::AttributedStringCoder::EncodedString)
58
59 // Reply message for TextInputClientMsg_StringAtPoint
60 IPC_MESSAGE_ROUTED2(TextInputClientReplyMsg_GotStringAtPoint,
61 mac::AttributedStringCoder::EncodedString,
62 gfx::Point)
54 #endif // defined(OS_MACOSX) 63 #endif // defined(OS_MACOSX)
55 64
OLDNEW
« no previous file with comments | « content/browser/renderer_host/text_input_client_message_filter.mm ('k') | content/renderer/text_input_client_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698