| OLD | NEW |
| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 const ServerWindow* old_parent); | 185 const ServerWindow* old_parent); |
| 186 void ProcessWindowHierarchyChanged(const ServerWindow* window, | 186 void ProcessWindowHierarchyChanged(const ServerWindow* window, |
| 187 const ServerWindow* new_parent, | 187 const ServerWindow* new_parent, |
| 188 const ServerWindow* old_parent); | 188 const ServerWindow* old_parent); |
| 189 void ProcessWindowReorder(const ServerWindow* window, | 189 void ProcessWindowReorder(const ServerWindow* window, |
| 190 const ServerWindow* relative_window, | 190 const ServerWindow* relative_window, |
| 191 const mojom::OrderDirection direction); | 191 const mojom::OrderDirection direction); |
| 192 void ProcessWindowDeleted(ServerWindow* window); | 192 void ProcessWindowDeleted(ServerWindow* window); |
| 193 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, | 193 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, |
| 194 mojom::Cursor cursor_id); | 194 mojom::Cursor cursor_id); |
| 195 void ProcessWindowSurfaceCreated( | |
| 196 ServerWindow* window, | |
| 197 mojom::CompositorFrameSinkType compositor_frame_sink_type, | |
| 198 const cc::SurfaceId& surface_id, | |
| 199 const gfx::Size& frame_size, | |
| 200 float device_scale_factor); | |
| 201 | 195 |
| 202 // Sends an |event| to all WindowTrees belonging to |user_id| that might be | 196 // Sends an |event| to all WindowTrees belonging to |user_id| that might be |
| 203 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is | 197 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is |
| 204 // the target of the event. | 198 // the target of the event. |
| 205 void SendToPointerWatchers(const ui::Event& event, | 199 void SendToPointerWatchers(const ui::Event& event, |
| 206 const UserId& user_id, | 200 const UserId& user_id, |
| 207 ServerWindow* target_window, | 201 ServerWindow* target_window, |
| 208 WindowTree* ignore_tree); | 202 WindowTree* ignore_tree); |
| 209 | 203 |
| 210 // Sets a callback to be called whenever a ServerWindow is scheduled for | 204 // Sets a callback to be called whenever a ServerWindow is scheduled for |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 // State for rendering into a Surface. | 384 // State for rendering into a Surface. |
| 391 scoped_refptr<ui::DisplayCompositor> display_compositor_; | 385 scoped_refptr<ui::DisplayCompositor> display_compositor_; |
| 392 | 386 |
| 393 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 387 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 394 }; | 388 }; |
| 395 | 389 |
| 396 } // namespace ws | 390 } // namespace ws |
| 397 } // namespace ui | 391 } // namespace ui |
| 398 | 392 |
| 399 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 393 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |