| 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 #include "ui/aura/mus/window_tree_client.h" | 5 #include "ui/aura/mus/window_tree_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 tree_ptr_->GetWindowManagerClient(MakeRequest( | 460 tree_ptr_->GetWindowManagerClient(MakeRequest( |
| 461 &window_manager_internal_client_, tree_ptr_.associated_group())); | 461 &window_manager_internal_client_, tree_ptr_.associated_group())); |
| 462 } | 462 } |
| 463 } | 463 } |
| 464 | 464 |
| 465 void WindowTreeClient::WindowTreeConnectionEstablished( | 465 void WindowTreeClient::WindowTreeConnectionEstablished( |
| 466 ui::mojom::WindowTree* window_tree) { | 466 ui::mojom::WindowTree* window_tree) { |
| 467 tree_ = window_tree; | 467 tree_ = window_tree; |
| 468 | 468 |
| 469 drag_drop_controller_ = base::MakeUnique<DragDropControllerMus>(this, tree_); | 469 drag_drop_controller_ = base::MakeUnique<DragDropControllerMus>(this, tree_); |
| 470 capture_synchronizer_ = base::MakeUnique<CaptureSynchronizer>(this, tree_); | 470 capture_synchronizer_ = |
| 471 base::MakeUnique<CaptureSynchronizer>(this, tree_, GetCaptureClient()); |
| 471 focus_synchronizer_ = base::MakeUnique<FocusSynchronizer>(this, tree_); | 472 focus_synchronizer_ = base::MakeUnique<FocusSynchronizer>(this, tree_); |
| 472 } | 473 } |
| 473 | 474 |
| 474 void WindowTreeClient::OnConnectionLost() { | 475 void WindowTreeClient::OnConnectionLost() { |
| 475 delegate_->OnLostConnection(this); | 476 delegate_->OnLostConnection(this); |
| 476 } | 477 } |
| 477 | 478 |
| 478 bool WindowTreeClient::HandleInternalPropertyChanged(WindowMus* window, | 479 bool WindowTreeClient::HandleInternalPropertyChanged(WindowMus* window, |
| 479 const void* key) { | 480 const void* key) { |
| 480 if (key != client::kModalKey) | 481 if (key != client::kModalKey) |
| (...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1821 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( | 1822 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( |
| 1822 this, capture_synchronizer_.get(), window)); | 1823 this, capture_synchronizer_.get(), window)); |
| 1823 } | 1824 } |
| 1824 | 1825 |
| 1825 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { | 1826 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { |
| 1826 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( | 1827 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( |
| 1827 this, focus_synchronizer_.get(), window)); | 1828 this, focus_synchronizer_.get(), window)); |
| 1828 } | 1829 } |
| 1829 | 1830 |
| 1830 } // namespace aura | 1831 } // namespace aura |
| OLD | NEW |