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

Side by Side Diff: services/ui/ws/display_manager.h

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Rebase and fix build issues. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_WS_DISPLAY_MANAGER_H_ 5 #ifndef SERVICES_UI_WS_DISPLAY_MANAGER_H_
6 #define SERVICES_UI_WS_DISPLAY_MANAGER_H_ 6 #define SERVICES_UI_WS_DISPLAY_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "services/ui/display/screen_manager_delegate.h" 13 #include "services/ui/display/screen_manager_delegate.h"
14 #include "services/ui/ws/ids.h" 14 #include "services/ui/ws/ids.h"
15 #include "services/ui/ws/user_id.h" 15 #include "services/ui/ws/user_id.h"
16 #include "services/ui/ws/user_id_tracker_observer.h" 16 #include "services/ui/ws/user_id_tracker_observer.h"
17 #include "ui/display/display.h" 17 #include "ui/display/display.h"
18 18
19 namespace ui { 19 namespace ui {
20 class EventRewriter;
20 namespace ws { 21 namespace ws {
21 22
22 class CursorLocationManager; 23 class CursorLocationManager;
23 class Display; 24 class Display;
24 class ServerWindow; 25 class ServerWindow;
25 class UserDisplayManager; 26 class UserDisplayManager;
26 class UserIdTracker; 27 class UserIdTracker;
27 class WindowManagerDisplayRoot; 28 class WindowManagerDisplayRoot;
28 class WindowServer; 29 class WindowServer;
29 30
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void OnDisplayAdded(const display::Display& display, 91 void OnDisplayAdded(const display::Display& display,
91 const display::ViewportMetrics& metrics) override; 92 const display::ViewportMetrics& metrics) override;
92 void OnDisplayRemoved(int64_t id) override; 93 void OnDisplayRemoved(int64_t id) override;
93 void OnDisplayModified(const display::Display& display, 94 void OnDisplayModified(const display::Display& display,
94 const display::ViewportMetrics& metrics) override; 95 const display::ViewportMetrics& metrics) override;
95 void OnPrimaryDisplayChanged(int64_t primary_display_id) override; 96 void OnPrimaryDisplayChanged(int64_t primary_display_id) override;
96 97
97 WindowServer* window_server_; 98 WindowServer* window_server_;
98 UserIdTracker* user_id_tracker_; 99 UserIdTracker* user_id_tracker_;
99 100
101 // For rewriting ChromeOS function keys.
102 std::unique_ptr<ui::EventRewriter> event_rewriter_;
103
100 // Displays are initially added to |pending_displays_|. When the display is 104 // Displays are initially added to |pending_displays_|. When the display is
101 // initialized it is moved to |displays_|. WindowServer owns the Displays. 105 // initialized it is moved to |displays_|. WindowServer owns the Displays.
102 std::set<Display*> pending_displays_; 106 std::set<Display*> pending_displays_;
103 std::set<Display*> displays_; 107 std::set<Display*> displays_;
104 108
105 std::map<UserId, std::unique_ptr<UserDisplayManager>> user_display_managers_; 109 std::map<UserId, std::unique_ptr<UserDisplayManager>> user_display_managers_;
106 110
107 std::map<UserId, std::unique_ptr<CursorLocationManager>> 111 std::map<UserId, std::unique_ptr<CursorLocationManager>>
108 cursor_location_managers_; 112 cursor_location_managers_;
109 113
110 // ID to use for next root node. 114 // ID to use for next root node.
111 ClientSpecificId next_root_id_; 115 ClientSpecificId next_root_id_;
112 116
113 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 117 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
114 }; 118 };
115 119
116 } // namespace ws 120 } // namespace ws
117 } // namespace ui 121 } // namespace ui
118 122
119 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ 123 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698