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

Side by Side Diff: components/mus/ws/window_server.h

Issue 1909733002: mus: Add EventObserver to allow passively listening to UI events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_H_
6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 void ProcessWindowHierarchyChanged(const ServerWindow* window, 179 void ProcessWindowHierarchyChanged(const ServerWindow* window,
180 const ServerWindow* new_parent, 180 const ServerWindow* new_parent,
181 const ServerWindow* old_parent); 181 const ServerWindow* old_parent);
182 void ProcessWindowReorder(const ServerWindow* window, 182 void ProcessWindowReorder(const ServerWindow* window,
183 const ServerWindow* relative_window, 183 const ServerWindow* relative_window,
184 const mojom::OrderDirection direction); 184 const mojom::OrderDirection direction);
185 void ProcessWindowDeleted(const ServerWindow* window); 185 void ProcessWindowDeleted(const ServerWindow* window);
186 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, 186 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
187 int32_t cursor_id); 187 int32_t cursor_id);
188 188
189 // Sends an event to all WindowTrees that are observing events.
190 void SendToEventObservers(const ui::Event& event);
191
189 private: 192 private:
190 friend class Operation; 193 friend class Operation;
191 194
192 using WindowTreeMap = std::map<ConnectionSpecificId, scoped_ptr<WindowTree>>; 195 using WindowTreeMap = std::map<ConnectionSpecificId, scoped_ptr<WindowTree>>;
193 196
194 struct InFlightWindowManagerChange { 197 struct InFlightWindowManagerChange {
195 // Identifies the client that initiated the change. 198 // Identifies the client that initiated the change.
196 ConnectionSpecificId connection_id; 199 ConnectionSpecificId connection_id;
197 200
198 // Change id supplied by the client. 201 // Change id supplied by the client.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 303
301 WindowManagerFactoryRegistry window_manager_factory_registry_; 304 WindowManagerFactoryRegistry window_manager_factory_registry_;
302 305
303 DISALLOW_COPY_AND_ASSIGN(WindowServer); 306 DISALLOW_COPY_AND_ASSIGN(WindowServer);
304 }; 307 };
305 308
306 } // namespace ws 309 } // namespace ws
307 } // namespace mus 310 } // namespace mus
308 311
309 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 312 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698