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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1285373002: Ensure that Service Worker clients are always returned in MRU order (1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch from activate to focus for ordering. Created 5 years, 4 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
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));

Powered by Google App Engine
This is Rietveld 408576698