| 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 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 if (transport_value) | 891 if (transport_value) |
| 892 transport_value_mojo.emplace(std::move(*transport_value)); | 892 transport_value_mojo.emplace(std::move(*transport_value)); |
| 893 | 893 |
| 894 const uint32_t change_id = | 894 const uint32_t change_id = |
| 895 ScheduleInFlightChange(base::MakeUnique<InFlightPropertyChange>( | 895 ScheduleInFlightChange(base::MakeUnique<InFlightPropertyChange>( |
| 896 window, transport_name, std::move(data_mus->transport_value))); | 896 window, transport_name, std::move(data_mus->transport_value))); |
| 897 tree_->SetWindowProperty(change_id, window->server_id(), transport_name, | 897 tree_->SetWindowProperty(change_id, window->server_id(), transport_name, |
| 898 transport_value_mojo); | 898 transport_value_mojo); |
| 899 } | 899 } |
| 900 | 900 |
| 901 void WindowTreeClient::RequestBeginFrames( |
| 902 WindowMus* window, |
| 903 cc::mojom::FrameSinkObserverPtr observer) { |
| 904 tree_->RequestBeginFrames(window->server_id(), std::move(observer)); |
| 905 } |
| 906 |
| 901 void WindowTreeClient::OnWmMoveLoopCompleted(uint32_t change_id, | 907 void WindowTreeClient::OnWmMoveLoopCompleted(uint32_t change_id, |
| 902 bool completed) { | 908 bool completed) { |
| 903 if (window_manager_client_) | 909 if (window_manager_client_) |
| 904 window_manager_client_->WmResponse(change_id, completed); | 910 window_manager_client_->WmResponse(change_id, completed); |
| 905 | 911 |
| 906 if (change_id == current_wm_move_loop_change_) { | 912 if (change_id == current_wm_move_loop_change_) { |
| 907 current_wm_move_loop_change_ = 0; | 913 current_wm_move_loop_change_ = 0; |
| 908 current_wm_move_loop_window_id_ = 0; | 914 current_wm_move_loop_window_id_ = 0; |
| 909 } | 915 } |
| 910 } | 916 } |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2076 } | 2082 } |
| 2077 | 2083 |
| 2078 void WindowTreeClient::OnCompositingLockStateChanged( | 2084 void WindowTreeClient::OnCompositingLockStateChanged( |
| 2079 ui::Compositor* compositor) {} | 2085 ui::Compositor* compositor) {} |
| 2080 | 2086 |
| 2081 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { | 2087 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { |
| 2082 compositor->RemoveObserver(this); | 2088 compositor->RemoveObserver(this); |
| 2083 } | 2089 } |
| 2084 | 2090 |
| 2085 } // namespace aura | 2091 } // namespace aura |
| OLD | NEW |