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

Side by Side Diff: components/mus/ws/window_manager_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
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool WindowManagerAccessPolicy::CanSetWindowProperties( 96 bool WindowManagerAccessPolicy::CanSetWindowProperties(
97 const ServerWindow* window) const { 97 const ServerWindow* window) const {
98 return window->id().connection_id == connection_id_; 98 return window->id().connection_id == connection_id_;
99 } 99 }
100 100
101 bool WindowManagerAccessPolicy::CanSetWindowTextInputState( 101 bool WindowManagerAccessPolicy::CanSetWindowTextInputState(
102 const ServerWindow* window) const { 102 const ServerWindow* window) const {
103 return window->id().connection_id == connection_id_; 103 return window->id().connection_id == connection_id_;
104 } 104 }
105 105
106 bool WindowManagerAccessPolicy::CanSetCapture(
107 const ServerWindow* window) const {
108 return window->id().connection_id == connection_id_;
109 }
110
106 bool WindowManagerAccessPolicy::CanSetFocus(const ServerWindow* window) const { 111 bool WindowManagerAccessPolicy::CanSetFocus(const ServerWindow* window) const {
107 return true; 112 return true;
108 } 113 }
109 114
110 bool WindowManagerAccessPolicy::CanSetClientArea( 115 bool WindowManagerAccessPolicy::CanSetClientArea(
111 const ServerWindow* window) const { 116 const ServerWindow* window) const {
112 return window->id().connection_id == connection_id_ || 117 return window->id().connection_id == connection_id_ ||
113 delegate_->HasRootForAccessPolicy(window); 118 delegate_->HasRootForAccessPolicy(window);
114 } 119 }
115 120
(...skipping 25 matching lines...) Expand all
141 } 146 }
142 147
143 bool WindowManagerAccessPolicy::IsWindowKnown( 148 bool WindowManagerAccessPolicy::IsWindowKnown(
144 const ServerWindow* window) const { 149 const ServerWindow* window) const {
145 return delegate_->IsWindowKnownForAccessPolicy(window); 150 return delegate_->IsWindowKnownForAccessPolicy(window);
146 } 151 }
147 152
148 } // namespace ws 153 } // namespace ws
149 154
150 } // namespace mus 155 } // 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