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

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

Issue 1677513002: mus Window Server: implement event capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/default_access_policy.h ('k') | components/mus/ws/display_manager.h » ('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/default_access_policy.h" 5 #include "components/mus/ws/default_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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 const ServerWindow* window) const { 116 const ServerWindow* window) const {
117 return WasCreatedByThisConnection(window); 117 return WasCreatedByThisConnection(window);
118 } 118 }
119 119
120 bool DefaultAccessPolicy::CanSetWindowTextInputState( 120 bool DefaultAccessPolicy::CanSetWindowTextInputState(
121 const ServerWindow* window) const { 121 const ServerWindow* window) const {
122 return WasCreatedByThisConnection(window) || 122 return WasCreatedByThisConnection(window) ||
123 delegate_->HasRootForAccessPolicy(window); 123 delegate_->HasRootForAccessPolicy(window);
124 } 124 }
125 125
126 bool DefaultAccessPolicy::CanSetCapture(const ServerWindow* window) const {
127 return WasCreatedByThisConnection(window) ||
128 delegate_->HasRootForAccessPolicy(window);
129 }
130
126 bool DefaultAccessPolicy::CanSetFocus(const ServerWindow* window) const { 131 bool DefaultAccessPolicy::CanSetFocus(const ServerWindow* window) const {
127 return WasCreatedByThisConnection(window) || 132 return WasCreatedByThisConnection(window) ||
128 delegate_->HasRootForAccessPolicy(window); 133 delegate_->HasRootForAccessPolicy(window);
129 } 134 }
130 135
131 bool DefaultAccessPolicy::CanSetClientArea(const ServerWindow* window) const { 136 bool DefaultAccessPolicy::CanSetClientArea(const ServerWindow* window) const {
132 return WasCreatedByThisConnection(window) || 137 return WasCreatedByThisConnection(window) ||
133 delegate_->HasRootForAccessPolicy(window); 138 delegate_->HasRootForAccessPolicy(window);
134 } 139 }
135 140
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 } 186 }
182 187
183 bool DefaultAccessPolicy::IsDescendantOfEmbedRoot( 188 bool DefaultAccessPolicy::IsDescendantOfEmbedRoot(
184 const ServerWindow* window) const { 189 const ServerWindow* window) const {
185 return delegate_->IsDescendantOfEmbedRoot(window); 190 return delegate_->IsDescendantOfEmbedRoot(window);
186 } 191 }
187 192
188 } // namespace ws 193 } // namespace ws
189 194
190 } // namespace mus 195 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/default_access_policy.h ('k') | components/mus/ws/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698