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

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: rebase 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void ProcessWindowHierarchyChanged(const ServerWindow* window, 181 void ProcessWindowHierarchyChanged(const ServerWindow* window,
182 const ServerWindow* new_parent, 182 const ServerWindow* new_parent,
183 const ServerWindow* old_parent); 183 const ServerWindow* old_parent);
184 void ProcessWindowReorder(const ServerWindow* window, 184 void ProcessWindowReorder(const ServerWindow* window,
185 const ServerWindow* relative_window, 185 const ServerWindow* relative_window,
186 const mojom::OrderDirection direction); 186 const mojom::OrderDirection direction);
187 void ProcessWindowDeleted(const ServerWindow* window); 187 void ProcessWindowDeleted(const ServerWindow* window);
188 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, 188 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
189 int32_t cursor_id); 189 int32_t cursor_id);
190 190
191 // Sends an |event| to all WindowTrees belonging to |user_id| that might be
192 // observing events. Skips |ignore_tree| if it is non-null.
193 void SendToEventObservers(const ui::Event& event,
194 const UserId& user_id,
195 WindowTree* ignore_tree);
196
191 // Sets a callback to be called whenever a ServerWindow is scheduled for 197 // Sets a callback to be called whenever a ServerWindow is scheduled for
192 // a [re]paint. This should only be called in a test configuration. 198 // a [re]paint. This should only be called in a test configuration.
193 void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback); 199 void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback);
194 200
195 private: 201 private:
196 friend class Operation; 202 friend class Operation;
197 203
198 using WindowTreeMap = 204 using WindowTreeMap =
199 std::map<ConnectionSpecificId, std::unique_ptr<WindowTree>>; 205 std::map<ConnectionSpecificId, std::unique_ptr<WindowTree>>;
200 206
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 315
310 WindowManagerFactoryRegistry window_manager_factory_registry_; 316 WindowManagerFactoryRegistry window_manager_factory_registry_;
311 317
312 DISALLOW_COPY_AND_ASSIGN(WindowServer); 318 DISALLOW_COPY_AND_ASSIGN(WindowServer);
313 }; 319 };
314 320
315 } // namespace ws 321 } // namespace ws
316 } // namespace mus 322 } // namespace mus
317 323
318 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ 324 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698