diff options
Diffstat (limited to 'content/browser/renderer_host/render_view_host.cc')
-rw-r--r-- | content/browser/renderer_host/render_view_host.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc index 3b539a3..d177462 100644 --- a/content/browser/renderer_host/render_view_host.cc +++ b/content/browser/renderer_host/render_view_host.cc @@ -712,6 +712,7 @@ bool RenderViewHost::OnMessageReceived(const IPC::Message& msg) { IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK) IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) + IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged) IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK) IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnMsgClosePageACK) @@ -1131,6 +1132,13 @@ void RenderViewHost::OnTakeFocus(bool reverse) { view->TakeFocus(reverse); } +void RenderViewHost::OnFocusedNodeChanged(bool is_editable_node) { + content::NotificationService::current()->Notify( + content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE, + content::Source<RenderViewHost>(this), + content::Details<const bool>(&is_editable_node)); +} + void RenderViewHost::OnAddMessageToConsole(int32 level, const string16& message, int32 line_no, |