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

Unified Diff: content/common/view_messages.h

Issue 7824037: Get surrounding text from webkit. This CL is for sharing code only. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 395ff9e6508149e515668ea0a82ba6411e1209b0..cc954ebf197b43fd0d9f3e34baba3902487b509c 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -792,6 +792,27 @@ IPC_STRUCT_BEGIN(ViewMsg_New_Params)
IPC_STRUCT_MEMBER(string16, frame_name)
IPC_STRUCT_END()
+IPC_STRUCT_BEGIN(ViewHostMsg_ImeUpdateTextInputState_Params)
+ // text input type.
+ IPC_STRUCT_MEMBER(ui::TextInputType, text_input_type)
+
+ // can compose inline.
+ IPC_STRUCT_MEMBER(bool, can_compose_inline)
+
+ // caret rectangle.
+ IPC_STRUCT_MEMBER(gfx::Rect, caret_bounds)
+
+ // surrounding text.
+ IPC_STRUCT_MEMBER(string16, surrounding)
+
+ // curosr.
+ IPC_STRUCT_MEMBER(size_t, cursor)
+
+ // anchor.
+ IPC_STRUCT_MEMBER(size_t, anchor)
+IPC_STRUCT_END()
+
+
// Messages sent from the browser to the renderer.
// Used typically when recovering from a crash. The new rendering process
@@ -1837,11 +1858,8 @@ IPC_SYNC_MESSAGE_ROUTED1_1(ViewHostMsg_GetRootWindowRect,
gfx::Rect /* Out: Window location */)
// Required for updating text input state.
-IPC_MESSAGE_ROUTED3(ViewHostMsg_ImeUpdateTextInputState,
- ui::TextInputType, /* text_input_type */
- bool, /* can_compose_inline */
- gfx::Rect /* caret_rect */)
-
+IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeUpdateTextInputState,
+ ViewHostMsg_ImeUpdateTextInputState_Params)
// Message sent when the IME text composition range changes.
IPC_MESSAGE_ROUTED1(ViewHostMsg_ImeCompositionRangeChanged,
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_gtk.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698