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

Side by Side Diff: components/mus/ws/default_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_DEFAULT_ACCESS_POLICY_H_ 5 #ifndef COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_
6 #define COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ 6 #define COMPONENTS_MUS_WS_DEFAULT_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 26 matching lines...) Expand all
37 bool CanDescendIntoWindowForWindowTree( 37 bool CanDescendIntoWindowForWindowTree(
38 const ServerWindow* window) const override; 38 const ServerWindow* window) const override;
39 bool CanEmbed(const ServerWindow* window, 39 bool CanEmbed(const ServerWindow* window,
40 uint32_t policy_bitmask) const override; 40 uint32_t policy_bitmask) const override;
41 bool CanChangeWindowVisibility(const ServerWindow* window) const override; 41 bool CanChangeWindowVisibility(const ServerWindow* window) const override;
42 bool CanSetWindowSurface(const ServerWindow* window, 42 bool CanSetWindowSurface(const ServerWindow* window,
43 mus::mojom::SurfaceType surface_type) const override; 43 mus::mojom::SurfaceType surface_type) const override;
44 bool CanSetWindowBounds(const ServerWindow* window) const override; 44 bool CanSetWindowBounds(const ServerWindow* window) const override;
45 bool CanSetWindowProperties(const ServerWindow* window) const override; 45 bool CanSetWindowProperties(const ServerWindow* window) const override;
46 bool CanSetWindowTextInputState(const ServerWindow* window) const override; 46 bool CanSetWindowTextInputState(const ServerWindow* window) const override;
47 bool CanSetCapture(const ServerWindow* window) const override;
47 bool CanSetFocus(const ServerWindow* window) const override; 48 bool CanSetFocus(const ServerWindow* window) const override;
48 bool CanSetClientArea(const ServerWindow* window) const override; 49 bool CanSetClientArea(const ServerWindow* window) const override;
49 bool ShouldNotifyOnHierarchyChange( 50 bool ShouldNotifyOnHierarchyChange(
50 const ServerWindow* window, 51 const ServerWindow* window,
51 const ServerWindow** new_parent, 52 const ServerWindow** new_parent,
52 const ServerWindow** old_parent) const override; 53 const ServerWindow** old_parent) const override;
53 const ServerWindow* GetWindowForFocusChange( 54 const ServerWindow* GetWindowForFocusChange(
54 const ServerWindow* focused) override; 55 const ServerWindow* focused) override;
55 56
56 private: 57 private:
57 bool WasCreatedByThisConnection(const ServerWindow* window) const; 58 bool WasCreatedByThisConnection(const ServerWindow* window) const;
58 bool IsDescendantOfEmbedRoot(const ServerWindow* window) const; 59 bool IsDescendantOfEmbedRoot(const ServerWindow* window) const;
59 60
60 const ConnectionSpecificId connection_id_; 61 const ConnectionSpecificId connection_id_;
61 AccessPolicyDelegate* delegate_; 62 AccessPolicyDelegate* delegate_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); 64 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy);
64 }; 65 };
65 66
66 } // namespace ws 67 } // namespace ws
67 68
68 } // namespace mus 69 } // namespace mus
69 70
70 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_ 71 #endif // COMPONENTS_MUS_WS_DEFAULT_ACCESS_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698