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

Unified Diff: mojo/services/view_manager/default_access_policy.h

Issue 513923004: More viewmanager renaming: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sim30 Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/view_manager/default_access_policy.h
diff --git a/mojo/services/view_manager/default_access_policy.h b/mojo/services/view_manager/default_access_policy.h
index 9f84378c9b49d02b62eb45fdd169f4870156e317..3912a876fc928b92b1503b7b6b815b4cc9a7d4d4 100644
--- a/mojo/services/view_manager/default_access_policy.h
+++ b/mojo/services/view_manager/default_access_policy.h
@@ -21,26 +21,27 @@ class DefaultAccessPolicy : public AccessPolicy {
virtual ~DefaultAccessPolicy();
// AccessPolicy:
- virtual bool CanRemoveNodeFromParent(const Node* node) const OVERRIDE;
- virtual bool CanAddNode(const Node* parent, const Node* child) const OVERRIDE;
- virtual bool CanReorderNode(const Node* node,
- const Node* relative_node,
+ virtual bool CanRemoveViewFromParent(const ServerView* view) const OVERRIDE;
+ virtual bool CanAddView(const ServerView* parent,
+ const ServerView* child) const OVERRIDE;
+ virtual bool CanReorderView(const ServerView* view,
+ const ServerView* relative_view,
OrderDirection direction) const OVERRIDE;
- virtual bool CanDeleteNode(const Node* node) const OVERRIDE;
- virtual bool CanGetNodeTree(const Node* node) const OVERRIDE;
- virtual bool CanDescendIntoNodeForNodeTree(const Node* node) const OVERRIDE;
- virtual bool CanEmbed(const Node* node) const OVERRIDE;
- virtual bool CanChangeNodeVisibility(const Node* node) const OVERRIDE;
- virtual bool CanSetNodeContents(const Node* node) const OVERRIDE;
- virtual bool CanSetNodeBounds(const Node* node) const OVERRIDE;
+ virtual bool CanDeleteView(const ServerView* view) const OVERRIDE;
+ virtual bool CanGetViewTree(const ServerView* view) const OVERRIDE;
+ virtual bool CanDescendIntoViewForViewTree(
+ const ServerView* view) const OVERRIDE;
+ virtual bool CanEmbed(const ServerView* view) const OVERRIDE;
+ virtual bool CanChangeViewVisibility(const ServerView* view) const OVERRIDE;
+ virtual bool CanSetViewContents(const ServerView* view) const OVERRIDE;
+ virtual bool CanSetViewBounds(const ServerView* view) const OVERRIDE;
virtual bool ShouldNotifyOnHierarchyChange(
- const Node* node,
- const Node** new_parent,
- const Node** old_parent) const OVERRIDE;
- virtual bool ShouldSendViewDeleted(const ViewId& view_id) const OVERRIDE;
+ const ServerView* view,
+ const ServerView** new_parent,
+ const ServerView** old_parent) const OVERRIDE;
private:
- bool IsNodeInRoots(const Node* node) const;
+ bool IsViewInRoots(const ServerView* view) const;
template <typename T>
bool WasCreatedByThisConnection(const T* t) const {
« 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