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

Unified Diff: services/ui/ws/display_manager.h

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Update tests Created 3 years, 9 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: services/ui/ws/display_manager.h
diff --git a/services/ui/ws/display_manager.h b/services/ui/ws/display_manager.h
index 0f240258379227d88c12d43f3be6bebd318b60b8..ae07c595b14784d6417b270918ec8bfc6364ad2a 100644
--- a/services/ui/ws/display_manager.h
+++ b/services/ui/ws/display_manager.h
@@ -17,6 +17,7 @@
#include "ui/display/display.h"
namespace ui {
+class EventRewriter;
namespace ws {
class CursorLocationManager;
@@ -74,6 +75,8 @@ class DisplayManager : public UserIdTrackerObserver,
return !displays_.empty() || !pending_displays_.empty();
}
+ ui::EventRewriter* event_rewriter() { return event_rewriter_.get(); }
+
// Returns the id for the next root window (both for the root of a Display
// as well as the root of WindowManagers).
WindowId GetAndAdvanceNextRootId();
@@ -97,6 +100,9 @@ class DisplayManager : public UserIdTrackerObserver,
WindowServer* window_server_;
UserIdTracker* user_id_tracker_;
+ // For rewriting ChromeOS function keys.
+ std::unique_ptr<ui::EventRewriter> event_rewriter_;
+
// Displays are initially added to |pending_displays_|. When the display is
// initialized it is moved to |displays_|. WindowServer owns the Displays.
std::set<Display*> pending_displays_;

Powered by Google App Engine
This is Rietveld 408576698