Index: content/browser/tab_contents/tab_contents.cc |
=================================================================== |
--- content/browser/tab_contents/tab_contents.cc (revision 113109) |
+++ content/browser/tab_contents/tab_contents.cc (working copy) |
@@ -315,6 +315,7 @@ |
OnUpdateContentRestrictions) |
IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
+ IPC_MESSAGE_HANDLER(ViewHostMsg_FocusedNodeChanged, OnFocusedNodeChanged) |
IPC_MESSAGE_HANDLER(ViewHostMsg_SaveURLAs, OnSaveURL) |
IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory) |
@@ -1151,6 +1152,13 @@ |
temporary_zoom_settings_ = !remember; |
} |
+void TabContents::OnFocusedNodeChanged(bool is_editable_node) { |
+ content::NotificationService::current()->Notify( |
+ content::NOTIFICATION_FOCUS_CHANGED_IN_PAGE, |
+ content::Source<TabContents>(this), |
+ content::Details<const bool>(&is_editable_node)); |
+} |
+ |
void TabContents::OnEnumerateDirectory(int request_id, |
const FilePath& path) { |
delegate()->EnumerateDirectory(this, request_id, path); |