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

Unified Diff: mojo/services/view_manager/window_manager_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/window_manager_access_policy.h
diff --git a/mojo/services/view_manager/window_manager_access_policy.h b/mojo/services/view_manager/window_manager_access_policy.h
index 3a628af1eafc1fff975c440ce008b61ad725027c..90813adb2277656cf768e679166c790518a1ae84 100644
--- a/mojo/services/view_manager/window_manager_access_policy.h
+++ b/mojo/services/view_manager/window_manager_access_policy.h
@@ -20,26 +20,27 @@ class WindowManagerAccessPolicy : public AccessPolicy {
virtual ~WindowManagerAccessPolicy();
// 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 IsNodeKnown(const Node* node) const;
+ bool IsViewKnown(const ServerView* view) const;
const ConnectionSpecificId connection_id_;
AccessPolicyDelegate* delegate_;
« no previous file with comments | « mojo/services/view_manager/view_manager_unittest.cc ('k') | mojo/services/view_manager/window_manager_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698