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

Unified Diff: components/mus/ws/window_manager_state.h

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_manager_state.h
diff --git a/components/mus/ws/window_manager_state.h b/components/mus/ws/window_manager_state.h
index dca6670d400ac522e3b2bc62821babc653840a3f..089114db5706c0a69aaf842bb63b2636a3ccd6d1 100644
--- a/components/mus/ws/window_manager_state.h
+++ b/components/mus/ws/window_manager_state.h
@@ -21,6 +21,7 @@ namespace mus {
namespace ws {
class DisplayManager;
+class UserActivityMonitor;
class WindowTree;
namespace test {
@@ -40,6 +41,10 @@ class WindowManagerState : public EventDispatcherDelegate {
WindowTree* window_tree() { return window_tree_; }
const WindowTree* window_tree() const { return window_tree_; }
+ UserActivityMonitor* user_activity_monitor() {
+ return user_activity_monitor_.get();
+ }
+
void OnWillDestroyTree(WindowTree* tree);
void SetFrameDecorationValues(mojom::FrameDecorationValuesPtr values);
@@ -166,6 +171,7 @@ class WindowManagerState : public EventDispatcherDelegate {
base::WeakPtr<Accelerator> post_target_accelerator_;
std::queue<std::unique_ptr<QueuedEvent>> event_queue_;
base::OneShotTimer event_ack_timer_;
+ std::unique_ptr<UserActivityMonitor> user_activity_monitor_;
EventDispatcher event_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698