Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index 8ea74c799e277febfa1469daefd545ccca0787be..95f78aa24f4a94b6cf366906bc794a1517198e88 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -655,6 +655,10 @@ void RenderWidgetHostImpl::ResizeRectChanged(const gfx::Rect& new_rect) { |
Send(new ViewMsg_ChangeResizeRect(routing_id_, new_rect)); |
} |
+base::TimeTicks RenderWidgetHostImpl::LastFocusTime() const { |
+ return last_focus_time_; |
+} |
+ |
void RenderWidgetHostImpl::GotFocus() { |
Focus(); |
if (delegate_) |
@@ -662,6 +666,7 @@ void RenderWidgetHostImpl::GotFocus() { |
} |
void RenderWidgetHostImpl::Focus() { |
+ last_focus_time_ = base::TimeTicks::Now(); |
is_focused_ = true; |
Send(new InputMsg_SetFocus(routing_id_, true)); |