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

Unified Diff: components/mus/ws/window_server.cc

Issue 2094933003: mus: Add UserActivityMonitor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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: components/mus/ws/window_server.cc
diff --git a/components/mus/ws/window_server.cc b/components/mus/ws/window_server.cc
index fb6382f70af6b419a8609bba214aaa10a441d3d5..18b1cd734809bade368b1e89aafb0ce644b2b17d 100644
--- a/components/mus/ws/window_server.cc
+++ b/components/mus/ws/window_server.cc
@@ -16,6 +16,7 @@
#include "components/mus/ws/display_manager.h"
#include "components/mus/ws/operation.h"
#include "components/mus/ws/server_window.h"
+#include "components/mus/ws/user_activity_monitor.h"
#include "components/mus/ws/window_coordinate_conversions.h"
#include "components/mus/ws/window_manager_access_policy.h"
#include "components/mus/ws/window_manager_display_root.h"
@@ -229,6 +230,11 @@ void WindowServer::OnFirstWindowManagerWindowTreeFactoryReady() {
delegate_->CreateDefaultDisplays();
}
+UserActivityMonitor* WindowServer::GetUserActivityMonitorForUser(
+ const UserId& user_id) {
+ return GetWindowManagerStateForUser(user_id)->user_activity_monitor();
+}
+
bool WindowServer::SetFocusedWindow(ServerWindow* window) {
// TODO(sky): this should fail if there is modal dialog active and |window|
// is outside that.
« components/mus/ws/window_manager_state.h ('K') | « components/mus/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698