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

Side by Side Diff: mojo/services/view_manager/default_access_policy.h

Issue 699173003: Makes ViewManagerServiceImpl track a single root (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: comment Created 6 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 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
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_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/default_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698