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

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

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 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 bool CanDescendIntoWindowForWindowTree( 38 bool CanDescendIntoWindowForWindowTree(
39 const ServerWindow* window) const override; 39 const ServerWindow* window) const override;
40 bool CanEmbed(const ServerWindow* window, 40 bool CanEmbed(const ServerWindow* window,
41 uint32_t policy_bitmask) const override; 41 uint32_t policy_bitmask) const override;
42 bool CanChangeWindowVisibility(const ServerWindow* window) const override; 42 bool CanChangeWindowVisibility(const ServerWindow* window) const override;
43 bool CanSetWindowSurface(const ServerWindow* window, 43 bool CanSetWindowSurface(const ServerWindow* window,
44 mus::mojom::SurfaceType surface_type) const override; 44 mus::mojom::SurfaceType surface_type) const override;
45 bool CanSetWindowBounds(const ServerWindow* window) const override; 45 bool CanSetWindowBounds(const ServerWindow* window) const override;
46 bool CanSetWindowProperties(const ServerWindow* window) const override; 46 bool CanSetWindowProperties(const ServerWindow* window) const override;
47 bool CanSetWindowTextInputState(const ServerWindow* window) const override; 47 bool CanSetWindowTextInputState(const ServerWindow* window) const override;
48 bool CanSetCapture(const ServerWindow* window) const override;
48 bool CanSetFocus(const ServerWindow* window) const override; 49 bool CanSetFocus(const ServerWindow* window) const override;
49 bool CanSetClientArea(const ServerWindow* window) const override; 50 bool CanSetClientArea(const ServerWindow* window) const override;
50 bool CanSetCursorProperties(const ServerWindow* window) const override; 51 bool CanSetCursorProperties(const ServerWindow* window) const override;
51 bool ShouldNotifyOnHierarchyChange( 52 bool ShouldNotifyOnHierarchyChange(
52 const ServerWindow* window, 53 const ServerWindow* window,
53 const ServerWindow** new_parent, 54 const ServerWindow** new_parent,
54 const ServerWindow** old_parent) const override; 55 const ServerWindow** old_parent) const override;
55 const ServerWindow* GetWindowForFocusChange( 56 const ServerWindow* GetWindowForFocusChange(
56 const ServerWindow* focused) override; 57 const ServerWindow* focused) override;
57 bool CanSetWindowManager() const override; 58 bool CanSetWindowManager() const override;
58 59
59 private: 60 private:
60 bool IsWindowKnown(const ServerWindow* window) const; 61 bool IsWindowKnown(const ServerWindow* window) const;
61 62
62 const ConnectionSpecificId connection_id_; 63 const ConnectionSpecificId connection_id_;
63 AccessPolicyDelegate* delegate_; 64 AccessPolicyDelegate* delegate_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); 66 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy);
66 }; 67 };
67 68
68 } // namespace ws 69 } // namespace ws
69 70
70 } // namespace mus 71 } // namespace mus
71 72
72 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ 73 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
OLDNEW
« no previous file with comments | « components/mus/ws/test_change_tracker.cc ('k') | components/mus/ws/window_manager_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698