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

Side by Side Diff: components/mus/ws/window_manager_access_policy.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
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_manager_access_policy.h" 5 #include "components/mus/ws/window_manager_access_policy.h"
6 6
7 #include "components/mus/ws/access_policy_delegate.h" 7 #include "components/mus/ws/access_policy_delegate.h"
8 #include "components/mus/ws/server_window.h" 8 #include "components/mus/ws/server_window.h"
9 9
10 namespace mus { 10 namespace mus {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const ServerWindow** new_parent, 124 const ServerWindow** new_parent,
125 const ServerWindow** old_parent) const { 125 const ServerWindow** old_parent) const {
126 // Notify if we've already told the window manager about the window, or if 126 // Notify if we've already told the window manager about the window, or if
127 // we've 127 // we've
128 // already told the window manager about the parent. The later handles the 128 // already told the window manager about the parent. The later handles the
129 // case of a window that wasn't parented to the root getting added to the 129 // case of a window that wasn't parented to the root getting added to the
130 // root. 130 // root.
131 return IsWindowKnown(window) || (*new_parent && IsWindowKnown(*new_parent)); 131 return IsWindowKnown(window) || (*new_parent && IsWindowKnown(*new_parent));
132 } 132 }
133 133
134 bool WindowManagerAccessPolicy::CanSetWindowManagerInternal() const { 134 bool WindowManagerAccessPolicy::CanSetWindowManager() const {
135 return true; 135 return true;
136 } 136 }
137 137
138 const ServerWindow* WindowManagerAccessPolicy::GetWindowForFocusChange( 138 const ServerWindow* WindowManagerAccessPolicy::GetWindowForFocusChange(
139 const ServerWindow* focused) { 139 const ServerWindow* focused) {
140 return focused; 140 return focused;
141 } 141 }
142 142
143 bool WindowManagerAccessPolicy::IsWindowKnown( 143 bool WindowManagerAccessPolicy::IsWindowKnown(
144 const ServerWindow* window) const { 144 const ServerWindow* window) const {
145 return delegate_->IsWindowKnownForAccessPolicy(window); 145 return delegate_->IsWindowKnownForAccessPolicy(window);
146 } 146 }
147 147
148 } // namespace ws 148 } // namespace ws
149 149
150 } // namespace mus 150 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_access_policy.h ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698