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

Side by Side Diff: components/mus/ws/access_policy.h

Issue 1757403002: More user id tracking for mus: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 9 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/BUILD.gn ('k') | components/mus/ws/connection_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 #ifndef COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 5 #ifndef COMPONENTS_MUS_WS_ACCESS_POLICY_H_
6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "components/mus/public/interfaces/mus_constants.mojom.h" 10 #include "components/mus/public/interfaces/mus_constants.mojom.h"
11 #include "components/mus/public/interfaces/window_tree.mojom.h" 11 #include "components/mus/public/interfaces/window_tree.mojom.h"
12 #include "components/mus/ws/ids.h" 12 #include "components/mus/ws/ids.h"
13 13
14 namespace mus { 14 namespace mus {
15
16 namespace ws { 15 namespace ws {
17 16
18 class ServerWindow; 17 class ServerWindow;
19 18
20 // AccessPolicy is used by WindowTreeImpl to determine what a connection is 19 // AccessPolicy is used by WindowTreeImpl to determine what a connection is
21 // allowed to do. 20 // allowed to do.
22 class AccessPolicy { 21 class AccessPolicy {
23 public: 22 public:
24 virtual ~AccessPolicy() {} 23 virtual ~AccessPolicy() {}
25 24
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const ServerWindow** new_parent, 64 const ServerWindow** new_parent,
66 const ServerWindow** old_parent) const = 0; 65 const ServerWindow** old_parent) const = 0;
67 virtual bool CanSetWindowManager() const = 0; 66 virtual bool CanSetWindowManager() const = 0;
68 67
69 // Returns the window to supply to the client when focus changes to |focused|. 68 // Returns the window to supply to the client when focus changes to |focused|.
70 virtual const ServerWindow* GetWindowForFocusChange( 69 virtual const ServerWindow* GetWindowForFocusChange(
71 const ServerWindow* focused) = 0; 70 const ServerWindow* focused) = 0;
72 }; 71 };
73 72
74 } // namespace ws 73 } // namespace ws
75
76 } // namespace mus 74 } // namespace mus
77 75
78 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_ 76 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/BUILD.gn ('k') | components/mus/ws/connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698