| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 const ServerWindow* new_parent, | 181 const ServerWindow* new_parent, |
| 182 const ServerWindow* old_parent); | 182 const ServerWindow* old_parent); |
| 183 void ProcessWindowHierarchyChanged(const ServerWindow* window, | 183 void ProcessWindowHierarchyChanged(const ServerWindow* window, |
| 184 const ServerWindow* new_parent, | 184 const ServerWindow* new_parent, |
| 185 const ServerWindow* old_parent); | 185 const ServerWindow* old_parent); |
| 186 void ProcessWindowReorder(const ServerWindow* window, | 186 void ProcessWindowReorder(const ServerWindow* window, |
| 187 const ServerWindow* relative_window, | 187 const ServerWindow* relative_window, |
| 188 const mojom::OrderDirection direction); | 188 const mojom::OrderDirection direction); |
| 189 void ProcessWindowDeleted(ServerWindow* window); | 189 void ProcessWindowDeleted(ServerWindow* window); |
| 190 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, | 190 void ProcessWillChangeWindowPredefinedCursor(ServerWindow* window, |
| 191 mojom::Cursor cursor_id); | 191 mojom::CursorType cursor_id); |
| 192 | 192 |
| 193 // Sends an |event| to all WindowTrees belonging to |user_id| that might be | 193 // Sends an |event| to all WindowTrees belonging to |user_id| that might be |
| 194 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is | 194 // observing events. Skips |ignore_tree| if it is non-null. |target_window| is |
| 195 // the target of the event. | 195 // the target of the event. |
| 196 void SendToPointerWatchers(const ui::Event& event, | 196 void SendToPointerWatchers(const ui::Event& event, |
| 197 const UserId& user_id, | 197 const UserId& user_id, |
| 198 ServerWindow* target_window, | 198 ServerWindow* target_window, |
| 199 WindowTree* ignore_tree, | 199 WindowTree* ignore_tree, |
| 200 int64_t display_id); | 200 int64_t display_id); |
| 201 | 201 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 void OnWillChangeWindowVisibility(ServerWindow* window) override; | 315 void OnWillChangeWindowVisibility(ServerWindow* window) override; |
| 316 void OnWindowVisibilityChanged(ServerWindow* window) override; | 316 void OnWindowVisibilityChanged(ServerWindow* window) override; |
| 317 void OnWindowOpacityChanged(ServerWindow* window, | 317 void OnWindowOpacityChanged(ServerWindow* window, |
| 318 float old_opacity, | 318 float old_opacity, |
| 319 float new_opacity) override; | 319 float new_opacity) override; |
| 320 void OnWindowSharedPropertyChanged( | 320 void OnWindowSharedPropertyChanged( |
| 321 ServerWindow* window, | 321 ServerWindow* window, |
| 322 const std::string& name, | 322 const std::string& name, |
| 323 const std::vector<uint8_t>* new_data) override; | 323 const std::vector<uint8_t>* new_data) override; |
| 324 void OnWindowPredefinedCursorChanged(ServerWindow* window, | 324 void OnWindowPredefinedCursorChanged(ServerWindow* window, |
| 325 mojom::Cursor cursor_id) override; | 325 mojom::CursorType cursor_id) override; |
| 326 void OnWindowNonClientCursorChanged(ServerWindow* window, | 326 void OnWindowNonClientCursorChanged(ServerWindow* window, |
| 327 mojom::Cursor cursor_id) override; | 327 mojom::CursorType cursor_id) override; |
| 328 void OnWindowTextInputStateChanged(ServerWindow* window, | 328 void OnWindowTextInputStateChanged(ServerWindow* window, |
| 329 const ui::TextInputState& state) override; | 329 const ui::TextInputState& state) override; |
| 330 void OnTransientWindowAdded(ServerWindow* window, | 330 void OnTransientWindowAdded(ServerWindow* window, |
| 331 ServerWindow* transient_child) override; | 331 ServerWindow* transient_child) override; |
| 332 void OnTransientWindowRemoved(ServerWindow* window, | 332 void OnTransientWindowRemoved(ServerWindow* window, |
| 333 ServerWindow* transient_child) override; | 333 ServerWindow* transient_child) override; |
| 334 | 334 |
| 335 // GpuHostDelegate: | 335 // GpuHostDelegate: |
| 336 void OnGpuServiceInitialized() override; | 336 void OnGpuServiceInitialized() override; |
| 337 | 337 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 // State for rendering into a Surface. | 387 // State for rendering into a Surface. |
| 388 cc::mojom::DisplayCompositorPtr display_compositor_; | 388 cc::mojom::DisplayCompositorPtr display_compositor_; |
| 389 | 389 |
| 390 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 390 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 391 }; | 391 }; |
| 392 | 392 |
| 393 } // namespace ws | 393 } // namespace ws |
| 394 } // namespace ui | 394 } // namespace ui |
| 395 | 395 |
| 396 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 396 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |