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

Unified Diff: chrome/common/render_messages_internal.h

Issue 3474007: Forward textfield focus event to the browser. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fixed merge conflict Created 10 years, 2 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 | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages_internal.h
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 5a4f57f66917b8c0e31f4ad4614c1ca4b6a2dd9e..e404fe120f1772970914108801772ae0268b434d 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -248,6 +248,11 @@ IPC_BEGIN_MESSAGES(View)
// node.
IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, bool /* reverse */)
+ // Tells the renderer to scroll the currently focused node into view only if
+ // the currently focused node is a Text node (textfield, text area or content
+ // editable divs).
+ IPC_MESSAGE_ROUTED0(ViewMsg_ScrollFocusedEditableNodeIntoView)
+
// Tells the renderer to perform the specified navigation, interrupting any
// existing navigation.
IPC_MESSAGE_ROUTED1(ViewMsg_Navigate, ViewMsg_Navigate_Params)
@@ -1318,7 +1323,12 @@ IPC_BEGIN_MESSAGES(ViewHost)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)
- IPC_MESSAGE_ROUTED0(ViewHostMsg_FocusedNodeChanged)
+
+ // Message sent from renderer to the browser when focus changes inside the
+ // webpage. The parameter says whether the newly focused element needs
+ // keyboard input (true for textfields, text areas and content editable divs).
+ IPC_MESSAGE_ROUTED1(ViewHostMsg_FocusedNodeChanged,
+ bool /* is_editable_node */)
// Returns the window location of the given window.
// TODO(shess): Provide a mapping from reply_msg->routing_id() to
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/renderer/render_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698