| 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 bool parent_drawn); | 251 bool parent_drawn); |
| 252 | 252 |
| 253 std::unique_ptr<EventResultCallback> CreateEventResultCallback( | 253 std::unique_ptr<EventResultCallback> CreateEventResultCallback( |
| 254 int32_t event_id); | 254 int32_t event_id); |
| 255 | 255 |
| 256 void OnReceivedCursorLocationMemory(mojo::ScopedSharedBufferHandle handle); | 256 void OnReceivedCursorLocationMemory(mojo::ScopedSharedBufferHandle handle); |
| 257 | 257 |
| 258 // Called when a property needs to change as the result of a change in the | 258 // Called when a property needs to change as the result of a change in the |
| 259 // server, or the server failing to accept a change. | 259 // server, or the server failing to accept a change. |
| 260 void SetWindowBoundsFromServer(WindowMus* window, | 260 void SetWindowBoundsFromServer(WindowMus* window, |
| 261 const gfx::Rect& revert_bounds); | 261 const gfx::Rect& revert_bounds_in_pixels); |
| 262 void SetWindowVisibleFromServer(WindowMus* window, bool visible); | 262 void SetWindowVisibleFromServer(WindowMus* window, bool visible); |
| 263 | 263 |
| 264 // Called from OnWindowMusBoundsChanged() and SetRootWindowBounds(). | 264 // Called from OnWindowMusBoundsChanged() and SetRootWindowBounds(). |
| 265 void ScheduleInFlightBoundsChange(WindowMus* window, | 265 void ScheduleInFlightBoundsChange(WindowMus* window, |
| 266 const gfx::Rect& old_bounds, | 266 const gfx::Rect& old_bounds, |
| 267 const gfx::Rect& new_bounds); | 267 const gfx::Rect& new_bounds); |
| 268 | 268 |
| 269 // Following are called from WindowMus. | 269 // Following are called from WindowMus. |
| 270 void OnWindowMusCreated(WindowMus* window); | 270 void OnWindowMusCreated(WindowMus* window); |
| 271 void OnWindowMusDestroyed(WindowMus* window, Origin origin); | 271 void OnWindowMusDestroyed(WindowMus* window, Origin origin); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 | 375 |
| 376 // Overridden from WindowManager: | 376 // Overridden from WindowManager: |
| 377 void OnConnect(ClientSpecificId client_id) override; | 377 void OnConnect(ClientSpecificId client_id) override; |
| 378 void WmNewDisplayAdded(const display::Display& display, | 378 void WmNewDisplayAdded(const display::Display& display, |
| 379 ui::mojom::WindowDataPtr root_data, | 379 ui::mojom::WindowDataPtr root_data, |
| 380 bool parent_drawn) override; | 380 bool parent_drawn) override; |
| 381 void WmDisplayRemoved(int64_t display_id) override; | 381 void WmDisplayRemoved(int64_t display_id) override; |
| 382 void WmDisplayModified(const display::Display& display) override; | 382 void WmDisplayModified(const display::Display& display) override; |
| 383 void WmSetBounds(uint32_t change_id, | 383 void WmSetBounds(uint32_t change_id, |
| 384 Id window_id, | 384 Id window_id, |
| 385 const gfx::Rect& transit_bounds) override; | 385 const gfx::Rect& transit_bounds_in_pixels) override; |
| 386 void WmSetProperty( | 386 void WmSetProperty( |
| 387 uint32_t change_id, | 387 uint32_t change_id, |
| 388 Id window_id, | 388 Id window_id, |
| 389 const std::string& name, | 389 const std::string& name, |
| 390 const base::Optional<std::vector<uint8_t>>& transit_data) override; | 390 const base::Optional<std::vector<uint8_t>>& transit_data) override; |
| 391 void WmCreateTopLevelWindow( | 391 void WmCreateTopLevelWindow( |
| 392 uint32_t change_id, | 392 uint32_t change_id, |
| 393 ClientSpecificId requesting_client_id, | 393 ClientSpecificId requesting_client_id, |
| 394 const std::unordered_map<std::string, std::vector<uint8_t>>& | 394 const std::unordered_map<std::string, std::vector<uint8_t>>& |
| 395 transport_properties) override; | 395 transport_properties) override; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; | 524 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; |
| 525 | 525 |
| 526 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 526 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 527 | 527 |
| 528 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 528 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 529 }; | 529 }; |
| 530 | 530 |
| 531 } // namespace aura | 531 } // namespace aura |
| 532 | 532 |
| 533 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ | 533 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |