| 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_ = | 470 capture_synchronizer_ = base::MakeUnique<CaptureSynchronizer>(this, tree_); |
| 471 base::MakeUnique<CaptureSynchronizer>(this, tree_, GetCaptureClient()); | |
| 472 focus_synchronizer_ = base::MakeUnique<FocusSynchronizer>(this, tree_); | 471 focus_synchronizer_ = base::MakeUnique<FocusSynchronizer>(this, tree_); |
| 473 } | 472 } |
| 474 | 473 |
| 475 void WindowTreeClient::OnConnectionLost() { | 474 void WindowTreeClient::OnConnectionLost() { |
| 476 delegate_->OnLostConnection(this); | 475 delegate_->OnLostConnection(this); |
| 477 } | 476 } |
| 478 | 477 |
| 479 bool WindowTreeClient::HandleInternalPropertyChanged(WindowMus* window, | 478 bool WindowTreeClient::HandleInternalPropertyChanged(WindowMus* window, |
| 480 const void* key) { | 479 const void* key) { |
| 481 if (key != client::kModalKey) | 480 if (key != client::kModalKey) |
| (...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( | 1821 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( |
| 1823 this, capture_synchronizer_.get(), window)); | 1822 this, capture_synchronizer_.get(), window)); |
| 1824 } | 1823 } |
| 1825 | 1824 |
| 1826 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { | 1825 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { |
| 1827 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( | 1826 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( |
| 1828 this, focus_synchronizer_.get(), window)); | 1827 this, focus_synchronizer_.get(), window)); |
| 1829 } | 1828 } |
| 1830 | 1829 |
| 1831 } // namespace aura | 1830 } // namespace aura |
| OLD | NEW |