Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: components/mus/ws/test_utils.cc

Issue 2089023002: Promotes remaining global window manager state into WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/output/copy_output_request.h" 8 #include "cc/output/copy_output_request.h"
9 #include "components/mus/surfaces/surfaces_state.h" 9 #include "components/mus/surfaces/surfaces_state.h"
10 #include "components/mus/ws/display_binding.h" 10 #include "components/mus/ws/display_binding.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int count = 0; 138 int count = 0;
139 for (const auto& pair : ed_->pointer_targets_) 139 for (const auto& pair : ed_->pointer_targets_)
140 if (pair.second.window == window) 140 if (pair.second.window == window)
141 count++; 141 count++;
142 return count; 142 return count;
143 } 143 }
144 144
145 // TestDisplayBinding --------------------------------------------------------- 145 // TestDisplayBinding ---------------------------------------------------------
146 146
147 WindowTree* TestDisplayBinding::CreateWindowTree(ServerWindow* root) { 147 WindowTree* TestDisplayBinding::CreateWindowTree(ServerWindow* root) {
148 return window_server_->EmbedAtWindow( 148 WindowTree* tree = window_server_->EmbedAtWindow(
149 root, shell::mojom::kRootUserID, mus::mojom::WindowTreeClientPtr(), 149 root, shell::mojom::kRootUserID, mus::mojom::WindowTreeClientPtr(),
150 base::WrapUnique(new WindowManagerAccessPolicy)); 150 base::WrapUnique(new WindowManagerAccessPolicy));
151 tree->ConfigureWindowManager();
152 return tree;
151 } 153 }
152 154
153 // TestWindowManager ---------------------------------------------------------- 155 // TestWindowManager ----------------------------------------------------------
154 156
155 void TestWindowManager::WmCreateTopLevelWindow( 157 void TestWindowManager::WmCreateTopLevelWindow(
156 uint32_t change_id, 158 uint32_t change_id,
157 ClientSpecificId requesting_client_id, 159 ClientSpecificId requesting_client_id,
158 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) { 160 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) {
159 got_create_top_level_window_ = true; 161 got_create_top_level_window_ = true;
160 change_id_ = change_id; 162 change_id_ = change_id;
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 return nullptr; 485 return nullptr;
484 if (!tree->AddWindow(parent_client_id, client_window_id)) 486 if (!tree->AddWindow(parent_client_id, client_window_id))
485 return nullptr; 487 return nullptr;
486 *client_id = client_window_id; 488 *client_id = client_window_id;
487 return tree->GetWindowByClientId(client_window_id); 489 return tree->GetWindowByClientId(client_window_id);
488 } 490 }
489 491
490 } // namespace test 492 } // namespace test
491 } // namespace ws 493 } // namespace ws
492 } // namespace mus 494 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/global_window_manager_state.cc ('k') | components/mus/ws/user_display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698