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

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

Issue 2685883003: chromeos: converts observed pointer events to DIPs (Closed)
Patch Set: merge Created 3 years, 10 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
« no previous file with comments | « services/ui/ws/window_manager_state_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void ProcessWindowDeleted(ServerWindow* window); 188 void ProcessWindowDeleted(ServerWindow* window);
189 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, 189 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window,
190 mojom::Cursor cursor_id); 190 mojom::Cursor cursor_id);
191 191
192 // Sends an |event| to all WindowTrees belonging to |user_id| that might be 192 // Sends an |event| to all WindowTrees belonging to |user_id| that might be
193 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is 193 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is
194 // the target of the event. 194 // the target of the event.
195 void SendToPointerWatchers(const ui::Event& event, 195 void SendToPointerWatchers(const ui::Event& event,
196 const UserId& user_id, 196 const UserId& user_id,
197 ServerWindow* target_window, 197 ServerWindow* target_window,
198 WindowTree* ignore_tree); 198 WindowTree* ignore_tree,
199 int64_t display_id);
199 200
200 // 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
201 // 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.
202 void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback); 203 void SetPaintCallback(const base::Callback<void(ServerWindow*)>& callback);
203 204
204 void StartMoveLoop(uint32_t change_id, 205 void StartMoveLoop(uint32_t change_id,
205 ServerWindow* window, 206 ServerWindow* window,
206 WindowTree* initiator, 207 WindowTree* initiator,
207 const gfx::Rect& revert_bounds); 208 const gfx::Rect& revert_bounds);
208 void EndMoveLoop(); 209 void EndMoveLoop();
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 // State for rendering into a Surface. 380 // State for rendering into a Surface.
380 cc::mojom::DisplayCompositorPtr display_compositor_; 381 cc::mojom::DisplayCompositorPtr display_compositor_;
381 382
382 DISALLOW_COPY_AND_ASSIGN(WindowServer); 383 DISALLOW_COPY_AND_ASSIGN(WindowServer);
383 }; 384 };
384 385
385 } // namespace ws 386 } // namespace ws
386 } // namespace ui 387 } // namespace ui
387 388
388 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ 389 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_state_unittest.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698