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

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

Issue 774473003: Move view_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
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
deleted file mode 100644
index e57bbd62a9a47b4b3d0b71eb7cd8ba0a7423d096..0000000000000000000000000000000000000000
--- a/mojo/services/view_manager/default_access_policy.h
+++ /dev/null
@@ -1,55 +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 MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_
-#define MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_
-
-#include "base/basictypes.h"
-#include "mojo/services/view_manager/access_policy.h"
-
-namespace mojo {
-namespace service {
-
-class AccessPolicyDelegate;
-
-// AccessPolicy for all connections, except the window manager.
-class DefaultAccessPolicy : public AccessPolicy {
- public:
- DefaultAccessPolicy(ConnectionSpecificId connection_id,
- AccessPolicyDelegate* delegate);
- ~DefaultAccessPolicy() override;
-
- // AccessPolicy:
- bool CanRemoveViewFromParent(const ServerView* view) const override;
- bool CanAddView(const ServerView* parent,
- const ServerView* child) const override;
- bool CanReorderView(const ServerView* view,
- const ServerView* relative_view,
- OrderDirection direction) const override;
- bool CanDeleteView(const ServerView* view) const override;
- bool CanGetViewTree(const ServerView* view) const override;
- bool CanDescendIntoViewForViewTree(const ServerView* view) const override;
- bool CanEmbed(const ServerView* view) const override;
- bool CanChangeViewVisibility(const ServerView* view) const override;
- bool CanSetViewSurfaceId(const ServerView* view) const override;
- bool CanSetViewBounds(const ServerView* view) const override;
- bool CanSetViewProperties(const ServerView* view) const override;
- bool ShouldNotifyOnHierarchyChange(
- const ServerView* view,
- const ServerView** new_parent,
- const ServerView** old_parent) const override;
-
- private:
- bool WasCreatedByThisConnection(const ServerView* view) const;
-
- const ConnectionSpecificId connection_id_;
- AccessPolicyDelegate* delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy);
-};
-
-} // namespace service
-} // namespace mojo
-
-#endif // MOJO_SERVICES_VIEW_MANAGER_DEFAULT_ACCESS_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698