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

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

Issue 1644773004: Renames some WindowManager classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 10 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/window_tree_impl.h ('k') | components/mus/ws/window_tree_unittest.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 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/ws/window_tree_impl.h" 5 #include "components/mus/ws/window_tree_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 // Only the owner of the window can change the bounds. 1165 // Only the owner of the window can change the bounds.
1166 bool success = window && access_policy_->CanSetCursorProperties(window); 1166 bool success = window && access_policy_->CanSetCursorProperties(window);
1167 if (success) { 1167 if (success) {
1168 Operation op(this, connection_manager_, 1168 Operation op(this, connection_manager_,
1169 OperationType::SET_WINDOW_PREDEFINED_CURSOR); 1169 OperationType::SET_WINDOW_PREDEFINED_CURSOR);
1170 window->SetPredefinedCursor(cursor_id); 1170 window->SetPredefinedCursor(cursor_id);
1171 } 1171 }
1172 client_->OnChangeCompleted(change_id, success); 1172 client_->OnChangeCompleted(change_id, success);
1173 } 1173 }
1174 1174
1175 void WindowTreeImpl::GetWindowManagerInternalClient( 1175 void WindowTreeImpl::GetWindowManagerClient(
1176 mojo::AssociatedInterfaceRequest<mojom::WindowManagerInternalClient> 1176 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {
1177 internal) { 1177 if (!access_policy_->CanSetWindowManager() || window_manager_internal_)
1178 if (!access_policy_->CanSetWindowManagerInternal() ||
1179 window_manager_internal_)
1180 return; 1178 return;
1181 window_manager_internal_client_binding_.reset( 1179 window_manager_internal_client_binding_.reset(
1182 new mojo::AssociatedBinding<mojom::WindowManagerInternalClient>( 1180 new mojo::AssociatedBinding<mojom::WindowManagerClient>(
1183 this, std::move(internal))); 1181 this, std::move(internal)));
1184 1182
1185 window_manager_internal_ = connection_manager_->GetClientConnection(this) 1183 window_manager_internal_ =
1186 ->GetWindowManagerInternal(); 1184 connection_manager_->GetClientConnection(this)->GetWindowManager();
1187 } 1185 }
1188 1186
1189 void WindowTreeImpl::WmResponse(uint32_t change_id, bool response) { 1187 void WindowTreeImpl::WmResponse(uint32_t change_id, bool response) {
1190 // TODO(sky): think about what else case means. 1188 // TODO(sky): think about what else case means.
1191 if (GetHostForWindowManager()) 1189 if (GetHostForWindowManager())
1192 connection_manager_->WindowManagerChangeCompleted(change_id, response); 1190 connection_manager_->WindowManagerChangeCompleted(change_id, response);
1193 } 1191 }
1194 1192
1195 void WindowTreeImpl::WmRequestClose(Id transport_window_id) { 1193 void WindowTreeImpl::WmRequestClose(Id transport_window_id) {
1196 // Only the WindowManager should be using this. 1194 // Only the WindowManager should be using this.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 1249
1252 for (const auto* root : roots_) { 1250 for (const auto* root : roots_) {
1253 if (root->Contains(window)) 1251 if (root->Contains(window))
1254 return true; 1252 return true;
1255 } 1253 }
1256 return false; 1254 return false;
1257 } 1255 }
1258 1256
1259 } // namespace ws 1257 } // namespace ws
1260 } // namespace mus 1258 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_impl.h ('k') | components/mus/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698