OLD | NEW |
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 MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "mojo/services/view_manager/access_policy.h" | 9 #include "mojo/services/view_manager/access_policy.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 bool CanChangeViewVisibility(const ServerView* view) const override; | 34 bool CanChangeViewVisibility(const ServerView* view) const override; |
35 bool CanSetViewSurfaceId(const ServerView* view) const override; | 35 bool CanSetViewSurfaceId(const ServerView* view) const override; |
36 bool CanSetViewBounds(const ServerView* view) const override; | 36 bool CanSetViewBounds(const ServerView* view) const override; |
37 bool CanSetViewProperties(const ServerView* view) const override; | 37 bool CanSetViewProperties(const ServerView* view) const override; |
38 bool ShouldNotifyOnHierarchyChange( | 38 bool ShouldNotifyOnHierarchyChange( |
39 const ServerView* view, | 39 const ServerView* view, |
40 const ServerView** new_parent, | 40 const ServerView** new_parent, |
41 const ServerView** old_parent) const override; | 41 const ServerView** old_parent) const override; |
42 | 42 |
43 private: | 43 private: |
44 bool IsViewInRoots(const ServerView* view) const; | |
45 | |
46 bool WasCreatedByThisConnection(const ServerView* view) const; | 44 bool WasCreatedByThisConnection(const ServerView* view) const; |
47 | 45 |
48 const ConnectionSpecificId connection_id_; | 46 const ConnectionSpecificId connection_id_; |
49 AccessPolicyDelegate* delegate_; | 47 AccessPolicyDelegate* delegate_; |
50 | 48 |
51 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); | 49 DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); |
52 }; | 50 }; |
53 | 51 |
54 } // namespace service | 52 } // namespace service |
55 } // namespace mojo | 53 } // namespace mojo |
56 | 54 |
57 #endif // MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_ | 55 #endif // MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_ |
OLD | NEW |