| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "components/mus/public/cpp/window.h" | 12 #include "components/mus/public/cpp/window.h" |
| 13 #include "components/mus/public/cpp/window_tree_connection.h" | 13 #include "components/mus/public/cpp/window_tree_connection.h" |
| 14 #include "components/mus/public/cpp/window_tree_delegate.h" | 14 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 15 #include "components/mus/public/interfaces/window_tree.mojom.h" | 15 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 16 #include "mojo/shell/public/cpp/shell_test.h" | 16 #include "services/shell/public/cpp/shell_test.h" |
| 17 | 17 |
| 18 namespace mash { | 18 namespace mash { |
| 19 namespace wm { | 19 namespace wm { |
| 20 | 20 |
| 21 class WindowTreeDelegateImpl : public mus::WindowTreeDelegate { | 21 class WindowTreeDelegateImpl : public mus::WindowTreeDelegate { |
| 22 public: | 22 public: |
| 23 WindowTreeDelegateImpl() {} | 23 WindowTreeDelegateImpl() {} |
| 24 ~WindowTreeDelegateImpl() override {} | 24 ~WindowTreeDelegateImpl() override {} |
| 25 | 25 |
| 26 private: | 26 private: |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 child_window->Embed(std::move(tree_client), base::Bind(&OnEmbed)); | 67 child_window->Embed(std::move(tree_client), base::Bind(&OnEmbed)); |
| 68 std::unique_ptr<mus::WindowTreeConnection> child_connection( | 68 std::unique_ptr<mus::WindowTreeConnection> child_connection( |
| 69 mus::WindowTreeConnection::Create( | 69 mus::WindowTreeConnection::Create( |
| 70 &window_tree_delegate, std::move(tree_client_request), | 70 &window_tree_delegate, std::move(tree_client_request), |
| 71 mus::WindowTreeConnection::CreateType::WAIT_FOR_EMBED)); | 71 mus::WindowTreeConnection::CreateType::WAIT_FOR_EMBED)); |
| 72 ASSERT_TRUE(!child_connection->GetRoots().empty()); | 72 ASSERT_TRUE(!child_connection->GetRoots().empty()); |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace wm | 75 } // namespace wm |
| 76 } // namespace mash | 76 } // namespace mash |
| OLD | NEW |