OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/ws/test_utils.h" | 5 #include "components/mus/ws/test_utils.h" |
6 | 6 |
7 #include "cc/output/copy_output_request.h" | 7 #include "cc/output/copy_output_request.h" |
8 #include "components/mus/surfaces/surfaces_state.h" | 8 #include "components/mus/surfaces/surfaces_state.h" |
9 #include "components/mus/ws/display_binding.h" | 9 #include "components/mus/ws/display_binding.h" |
10 #include "components/mus/ws/window_manager_access_policy.h" | 10 #include "components/mus/ws/window_manager_access_policy.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 for (const auto& pair : ed_->pointer_targets_) | 122 for (const auto& pair : ed_->pointer_targets_) |
123 if (pair.second.window == window) | 123 if (pair.second.window == window) |
124 count++; | 124 count++; |
125 return count; | 125 return count; |
126 } | 126 } |
127 | 127 |
128 // TestDisplayBinding --------------------------------------------------------- | 128 // TestDisplayBinding --------------------------------------------------------- |
129 | 129 |
130 WindowTree* TestDisplayBinding::CreateWindowTree(ServerWindow* root) { | 130 WindowTree* TestDisplayBinding::CreateWindowTree(ServerWindow* root) { |
131 return window_server_->EmbedAtWindow( | 131 return window_server_->EmbedAtWindow( |
132 root, mojo::shell::mojom::kRootUserID, mus::mojom::WindowTreeClientPtr(), | 132 root, shell::mojom::kRootUserID, mus::mojom::WindowTreeClientPtr(), |
133 make_scoped_ptr(new WindowManagerAccessPolicy)); | 133 make_scoped_ptr(new WindowManagerAccessPolicy)); |
134 } | 134 } |
135 | 135 |
136 // TestWindowManager ---------------------------------------------------------- | 136 // TestWindowManager ---------------------------------------------------------- |
137 | 137 |
138 void TestWindowManager::WmCreateTopLevelWindow( | 138 void TestWindowManager::WmCreateTopLevelWindow( |
139 uint32_t change_id, | 139 uint32_t change_id, |
140 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) { | 140 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) { |
141 got_create_top_level_window_ = true; | 141 got_create_top_level_window_ = true; |
142 change_id_ = change_id; | 142 change_id_ = change_id; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 return nullptr; | 363 return nullptr; |
364 if (!tree->AddWindow(parent_client_id, client_window_id)) | 364 if (!tree->AddWindow(parent_client_id, client_window_id)) |
365 return nullptr; | 365 return nullptr; |
366 *client_id = client_window_id; | 366 *client_id = client_window_id; |
367 return tree->GetWindowByClientId(client_window_id); | 367 return tree->GetWindowByClientId(client_window_id); |
368 } | 368 } |
369 | 369 |
370 } // namespace test | 370 } // namespace test |
371 } // namespace ws | 371 } // namespace ws |
372 } // namespace mus | 372 } // namespace mus |
OLD | NEW |