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

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

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « components/mus/ws/platform_display_init_params.h ('k') | components/mus/ws/user_id_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « components/mus/ws/platform_display_init_params.h ('k') | components/mus/ws/user_id_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698