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 "components/mus/public/cpp/lib/window_tree_client_impl.h" | 5 #include "components/mus/public/cpp/lib/window_tree_client_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "components/mus/common/util.h" | 8 #include "components/mus/common/util.h" |
9 #include "components/mus/public/cpp/lib/in_flight_change.h" | 9 #include "components/mus/public/cpp/lib/in_flight_change.h" |
10 #include "components/mus/public/cpp/lib/window_private.h" | 10 #include "components/mus/public/cpp/lib/window_private.h" |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 // the client applies the bounds we set below. | 648 // the client applies the bounds we set below. |
649 window->SetSharedPropertyInternal(name, data.get()); | 649 window->SetSharedPropertyInternal(name, data.get()); |
650 } | 650 } |
651 } | 651 } |
652 tree_->WmResponse(change_id, result); | 652 tree_->WmResponse(change_id, result); |
653 } | 653 } |
654 | 654 |
655 //////////////////////////////////////////////////////////////////////////////// | 655 //////////////////////////////////////////////////////////////////////////////// |
656 // WindowTreeClientImpl, private: | 656 // WindowTreeClientImpl, private: |
657 | 657 |
658 void WindowTreeClientImpl::OnActionCompleted(bool success) { | |
659 if (!change_acked_callback_.is_null()) | |
660 change_acked_callback_.Run(); | |
661 } | |
662 | |
663 mojo::Callback<void(bool)> WindowTreeClientImpl::ActionCompletedCallback() { | 658 mojo::Callback<void(bool)> WindowTreeClientImpl::ActionCompletedCallback() { |
664 return [this](bool success) { OnActionCompleted(success); }; | 659 return [this](bool success) {}; |
665 } | 660 } |
666 | 661 |
667 } // namespace mus | 662 } // namespace mus |
OLD | NEW |