| OLD | NEW |
| 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_manager_access_policy.h" | 5 #include "services/ui/ws/window_manager_access_policy.h" |
| 6 | 6 |
| 7 #include "components/mus/ws/access_policy_delegate.h" | 7 #include "services/ui/ws/access_policy_delegate.h" |
| 8 #include "components/mus/ws/server_window.h" | 8 #include "services/ui/ws/server_window.h" |
| 9 | 9 |
| 10 namespace mus { | 10 namespace mus { |
| 11 namespace ws { | 11 namespace ws { |
| 12 | 12 |
| 13 WindowManagerAccessPolicy::WindowManagerAccessPolicy() {} | 13 WindowManagerAccessPolicy::WindowManagerAccessPolicy() {} |
| 14 | 14 |
| 15 WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {} | 15 WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {} |
| 16 | 16 |
| 17 void WindowManagerAccessPolicy::Init(ClientSpecificId client_id, | 17 void WindowManagerAccessPolicy::Init(ClientSpecificId client_id, |
| 18 AccessPolicyDelegate* delegate) { | 18 AccessPolicyDelegate* delegate) { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 return WindowIdFromTransportId(id.id).client_id == client_id_; | 175 return WindowIdFromTransportId(id.id).client_id == client_id_; |
| 176 } | 176 } |
| 177 | 177 |
| 178 bool WindowManagerAccessPolicy::WasCreatedByThisClient( | 178 bool WindowManagerAccessPolicy::WasCreatedByThisClient( |
| 179 const ServerWindow* window) const { | 179 const ServerWindow* window) const { |
| 180 return window->id().client_id == client_id_; | 180 return window->id().client_id == client_id_; |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace ws | 183 } // namespace ws |
| 184 } // namespace mus | 184 } // namespace mus |
| OLD | NEW |