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

Unified Diff: services/view_manager/access_policy.h

Issue 1530333005: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2c
Patch Set: rebase Created 5 years 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
« no previous file with comments | « services/view_manager/BUILD.gn ('k') | services/view_manager/access_policy_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/view_manager/access_policy.h
diff --git a/services/view_manager/access_policy.h b/services/view_manager/access_policy.h
deleted file mode 100644
index 91560bc49d6e51069f5f4ad27dd7f25a0174aebf..0000000000000000000000000000000000000000
--- a/services/view_manager/access_policy.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_VIEW_MANAGER_ACCESS_POLICY_H_
-#define SERVICES_VIEW_MANAGER_ACCESS_POLICY_H_
-
-#include "mojo/services/view_manager/interfaces/view_manager_constants.mojom.h"
-#include "services/view_manager/ids.h"
-
-namespace view_manager {
-
-class ServerView;
-
-// AccessPolicy is used by ViewManagerServiceImpl to determine what a connection
-// is allowed to do.
-class AccessPolicy {
- public:
- virtual ~AccessPolicy() {}
-
- // Unless otherwise mentioned all arguments have been validated. That is the
- // |view| arguments are non-null unless otherwise stated (eg CanSetView() is
- // allowed to take a NULL view).
- virtual bool CanRemoveViewFromParent(const ServerView* view) const = 0;
- virtual bool CanAddView(const ServerView* parent,
- const ServerView* child) const = 0;
- virtual bool CanReorderView(const ServerView* view,
- const ServerView* relative_view,
- mojo::OrderDirection direction) const = 0;
- virtual bool CanDeleteView(const ServerView* view) const = 0;
- virtual bool CanGetViewTree(const ServerView* view) const = 0;
- // Used when building a view tree (GetViewTree()) to decide if we should
- // descend into |view|.
- virtual bool CanDescendIntoViewForViewTree(const ServerView* view) const = 0;
- virtual bool CanEmbed(const ServerView* view) const = 0;
- virtual bool CanChangeViewVisibility(const ServerView* view) const = 0;
- virtual bool CanSetViewSurfaceId(const ServerView* view) const = 0;
- virtual bool CanSetViewBounds(const ServerView* view) const = 0;
- virtual bool CanSetViewProperties(const ServerView* view) const = 0;
-
- // Returns whether the connection should notify on a hierarchy change.
- // |new_parent| and |old_parent| are initially set to the new and old parents
- // but may be altered so that the client only sees a certain set of views.
- virtual bool ShouldNotifyOnHierarchyChange(
- const ServerView* view,
- const ServerView** new_parent,
- const ServerView** old_parent) const = 0;
-};
-
-} // namespace view_manager
-
-#endif // SERVICES_VIEW_MANAGER_ACCESS_POLICY_H_
« no previous file with comments | « services/view_manager/BUILD.gn ('k') | services/view_manager/access_policy_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698