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

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

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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/access_policy.h ('k') | components/mus/ws/animation_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_WS_ACCESS_POLICY_DELEGATE_H_
6 #define COMPONENTS_MUS_WS_ACCESS_POLICY_DELEGATE_H_
7
8 #include <vector>
9
10 #include "base/containers/hash_tables.h"
11 #include "components/mus/ws/ids.h"
12
13 namespace mus {
14
15 namespace ws {
16
17 class ServerWindow;
18
19 // Delegate used by the AccessPolicy implementations to get state.
20 class AccessPolicyDelegate {
21 public:
22 // Returns true if the tree has |window| as one of its roots.
23 virtual bool HasRootForAccessPolicy(const ServerWindow* window) const = 0;
24
25 // Returns true if |window| has been exposed to the client.
26 virtual bool IsWindowKnownForAccessPolicy(
27 const ServerWindow* window) const = 0;
28
29 // Returns true if Embed(window) has been invoked on |window|.
30 virtual bool IsWindowRootOfAnotherTreeForAccessPolicy(
31 const ServerWindow* window) const = 0;
32
33 protected:
34 virtual ~AccessPolicyDelegate() {}
35 };
36
37 } // namespace ws
38
39 } // namespace mus
40
41 #endif // COMPONENTS_MUS_WS_ACCESS_POLICY_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/access_policy.h ('k') | components/mus/ws/animation_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698