| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 DCHECK(window_manager_delegate_); | 227 DCHECK(window_manager_delegate_); |
| 228 | 228 |
| 229 ui::mojom::WindowManagerWindowTreeFactoryPtr factory; | 229 ui::mojom::WindowManagerWindowTreeFactoryPtr factory; |
| 230 connector_->BindInterface(ui::mojom::kServiceName, &factory); | 230 connector_->BindInterface(ui::mojom::kServiceName, &factory); |
| 231 ui::mojom::WindowTreePtr window_tree; | 231 ui::mojom::WindowTreePtr window_tree; |
| 232 factory->CreateWindowTree(MakeRequest(&window_tree), | 232 factory->CreateWindowTree(MakeRequest(&window_tree), |
| 233 binding_.CreateInterfacePtrAndBind()); | 233 binding_.CreateInterfacePtrAndBind()); |
| 234 SetWindowTree(std::move(window_tree)); | 234 SetWindowTree(std::move(window_tree)); |
| 235 } | 235 } |
| 236 | 236 |
| 237 client::CaptureClient* WindowTreeClient::GetCaptureClient() { | |
| 238 return delegate_->GetCaptureClient(); | |
| 239 } | |
| 240 | |
| 241 void WindowTreeClient::SetCanFocus(Window* window, bool can_focus) { | 237 void WindowTreeClient::SetCanFocus(Window* window, bool can_focus) { |
| 242 DCHECK(tree_); | 238 DCHECK(tree_); |
| 243 DCHECK(window); | 239 DCHECK(window); |
| 244 tree_->SetCanFocus(WindowMus::Get(window)->server_id(), can_focus); | 240 tree_->SetCanFocus(WindowMus::Get(window)->server_id(), can_focus); |
| 245 } | 241 } |
| 246 | 242 |
| 247 void WindowTreeClient::SetPredefinedCursor(WindowMus* window, | 243 void WindowTreeClient::SetPredefinedCursor(WindowMus* window, |
| 248 ui::mojom::Cursor old_cursor, | 244 ui::mojom::Cursor old_cursor, |
| 249 ui::mojom::Cursor new_cursor) { | 245 ui::mojom::Cursor new_cursor) { |
| 250 DCHECK(tree_); | 246 DCHECK(tree_); |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1822 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( | 1818 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( |
| 1823 this, capture_synchronizer_.get(), window)); | 1819 this, capture_synchronizer_.get(), window)); |
| 1824 } | 1820 } |
| 1825 | 1821 |
| 1826 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { | 1822 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { |
| 1827 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( | 1823 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( |
| 1828 this, focus_synchronizer_.get(), window)); | 1824 this, focus_synchronizer_.get(), window)); |
| 1829 } | 1825 } |
| 1830 | 1826 |
| 1831 } // namespace aura | 1827 } // namespace aura |
| OLD | NEW |