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

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

Issue 1352043005: mus: Implement Window Server Capture Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added capture unit tests Created 5 years, 1 month 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/mus/ws/access_policy.h" 9 #include "components/mus/ws/access_policy.h"
10 10
(...skipping 25 matching lines...) Expand all
36 bool CanDescendIntoWindowForWindowTree( 36 bool CanDescendIntoWindowForWindowTree(
37 const ServerWindow* window) const override; 37 const ServerWindow* window) const override;
38 bool CanEmbed(const ServerWindow* window, 38 bool CanEmbed(const ServerWindow* window,
39 uint32_t policy_bitmask) const override; 39 uint32_t policy_bitmask) const override;
40 bool CanChangeWindowVisibility(const ServerWindow* window) const override; 40 bool CanChangeWindowVisibility(const ServerWindow* window) const override;
41 bool CanSetWindowSurface(const ServerWindow* window, 41 bool CanSetWindowSurface(const ServerWindow* window,
42 mus::mojom::SurfaceType surface_type) const override; 42 mus::mojom::SurfaceType surface_type) const override;
43 bool CanSetWindowBounds(const ServerWindow* window) const override; 43 bool CanSetWindowBounds(const ServerWindow* window) const override;
44 bool CanSetWindowProperties(const ServerWindow* window) const override; 44 bool CanSetWindowProperties(const ServerWindow* window) const override;
45 bool CanSetWindowTextInputState(const ServerWindow* window) const override; 45 bool CanSetWindowTextInputState(const ServerWindow* window) const override;
46 bool CanSetCapture(const ServerWindow* window) const override;
46 bool CanSetFocus(const ServerWindow* window) const override; 47 bool CanSetFocus(const ServerWindow* window) const override;
47 bool CanSetClientArea(const ServerWindow* window) const override; 48 bool CanSetClientArea(const ServerWindow* window) const override;
48 bool ShouldNotifyOnHierarchyChange( 49 bool ShouldNotifyOnHierarchyChange(
49 const ServerWindow* window, 50 const ServerWindow* window,
50 const ServerWindow** new_parent, 51 const ServerWindow** new_parent,
51 const ServerWindow** old_parent) const override; 52 const ServerWindow** old_parent) const override;
52 const ServerWindow* GetWindowForFocusChange( 53 const ServerWindow* GetWindowForFocusChange(
53 const ServerWindow* focused) override; 54 const ServerWindow* focused) override;
54 55
55 private: 56 private:
56 bool IsWindowKnown(const ServerWindow* window) const; 57 bool IsWindowKnown(const ServerWindow* window) const;
57 58
58 const ConnectionSpecificId connection_id_; 59 const ConnectionSpecificId connection_id_;
59 AccessPolicyDelegate* delegate_; 60 AccessPolicyDelegate* delegate_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy); 62 DISALLOW_COPY_AND_ASSIGN(WindowManagerAccessPolicy);
62 }; 63 };
63 64
64 } // namespace ws 65 } // namespace ws
65 66
66 } // namespace mus 67 } // namespace mus
67 68
68 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_ 69 #endif // COMPONENTS_MUS_WS_WINDOW_MANAGER_ACCESS_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698