Index: content/browser/renderer_host/render_view_host.cc |
=================================================================== |
--- content/browser/renderer_host/render_view_host.cc (revision 112878) |
+++ content/browser/renderer_host/render_view_host.cc (working copy) |
@@ -712,6 +712,7 @@ |
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 @@ |
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, |