| Index: ui/aura/mus/window_tree_client.cc
|
| diff --git a/ui/aura/mus/window_tree_client.cc b/ui/aura/mus/window_tree_client.cc
|
| index d5cef1fae1c448b7cc621187bf7ab32de56a5eb9..0ae7b855248f0aec78dd4bf89bc0c5cdef6ea326 100644
|
| --- a/ui/aura/mus/window_tree_client.cc
|
| +++ b/ui/aura/mus/window_tree_client.cc
|
| @@ -1510,6 +1510,25 @@ void WindowTreeClient::WmDeactivateWindow(Id window_id) {
|
| window_manager_delegate_->OnWmDeactivateWindow(window->GetWindow());
|
| }
|
|
|
| +void WindowTreeClient::WmStackAtTop(uint32_t wm_change_id, uint32_t window_id) {
|
| + if (!window_manager_delegate_)
|
| + return;
|
| +
|
| + WindowMus* window = GetWindowByServerId(window_id);
|
| + if (!window) {
|
| + DVLOG(1) << "Attempt to stack at top invalid window " << window_id;
|
| + if (window_manager_internal_client_)
|
| + window_manager_internal_client_->WmResponse(wm_change_id, false);
|
| + return;
|
| + }
|
| +
|
| + Window* parent = window->GetWindow()->parent();
|
| + parent->StackChildAtTop(window->GetWindow());
|
| +
|
| + if (window_manager_internal_client_)
|
| + window_manager_internal_client_->WmResponse(wm_change_id, true);
|
| +}
|
| +
|
| void WindowTreeClient::OnAccelerator(uint32_t ack_id,
|
| uint32_t accelerator_id,
|
| std::unique_ptr<ui::Event> event) {
|
|
|