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

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

Issue 2183163002: mus: Change PointerWatcher to observe all pointer events, with moves optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ifs Created 4 years, 4 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 SERVICES_UI_WS_WINDOW_SERVER_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const ServerWindow* old_parent); 187 const ServerWindow* old_parent);
188 void ProcessWindowReorder(const ServerWindow* window, 188 void ProcessWindowReorder(const ServerWindow* window,
189 const ServerWindow* relative_window, 189 const ServerWindow* relative_window,
190 const mojom::OrderDirection direction); 190 const mojom::OrderDirection direction);
191 void ProcessWindowDeleted(const ServerWindow* window); 191 void ProcessWindowDeleted(const ServerWindow* window);
192 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, 192 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
193 int32_t cursor_id); 193 int32_t cursor_id);
194 194
195 // Sends an |event| to all WindowTrees belonging to |user_id| that might be 195 // Sends an |event| to all WindowTrees belonging to |user_id| that might be
196 // observing events. Skips |ignore_tree| if it is non-null. 196 // observing events. Skips |ignore_tree| if it is non-null.
197 void SendToEventObservers(const ui::Event& event, 197 void SendToPointerWatchers(const ui::Event& event,
198 const UserId& user_id, 198 const UserId& user_id,
199 WindowTree* ignore_tree); 199 WindowTree* ignore_tree);
200 200
201 // Sets a callback to be called whenever a ServerWindow is scheduled for 201 // Sets a callback to be called whenever a ServerWindow is scheduled for
202 // a [re]paint. This should only be called in a test configuration. 202 // a [re]paint. This should only be called in a test configuration.
203 void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback); 203 void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback);
204 204
205 void StartMoveLoop(uint32_t change_id, 205 void StartMoveLoop(uint32_t change_id,
206 ServerWindow* window, 206 ServerWindow* window,
207 WindowTree* initiator, 207 WindowTree* initiator,
208 const gfx::Rect& revert_bounds); 208 const gfx::Rect& revert_bounds);
209 void EndMoveLoop(); 209 void EndMoveLoop();
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 359
360 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_; 360 WindowManagerWindowTreeFactorySet window_manager_window_tree_factory_set_;
361 361
362 DISALLOW_COPY_AND_ASSIGN(WindowServer); 362 DISALLOW_COPY_AND_ASSIGN(WindowServer);
363 }; 363 };
364 364
365 } // namespace ws 365 } // namespace ws
366 } // namespace ui 366 } // namespace ui
367 367
368 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 368 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698