Index: components/mus/default_access_policy.h |
diff --git a/components/mus/default_access_policy.h b/components/mus/default_access_policy.h |
deleted file mode 100644 |
index 7ee9b88317eb5df9710b2abb33969c6b199c911a..0000000000000000000000000000000000000000 |
--- a/components/mus/default_access_policy.h |
+++ /dev/null |
@@ -1,57 +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 COMPONENTS_MUS_DEFAULT_ACCESS_POLICY_H_ |
-#define COMPONENTS_MUS_DEFAULT_ACCESS_POLICY_H_ |
- |
-#include "base/basictypes.h" |
-#include "components/mus/access_policy.h" |
- |
-namespace mus { |
- |
-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, |
- mojo::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, uint32_t policy_bitmask) 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 CanSetViewTextInputState(const ServerView* view) const override; |
- bool CanSetFocus(const ServerView* view) const override; |
- bool ShouldNotifyOnHierarchyChange( |
- const ServerView* view, |
- const ServerView** new_parent, |
- const ServerView** old_parent) const override; |
- const ServerView* GetViewForFocusChange(const ServerView* focused) override; |
- |
- private: |
- bool WasCreatedByThisConnection(const ServerView* view) const; |
- bool IsDescendantOfEmbedRoot(const ServerView* view) const; |
- |
- const ConnectionSpecificId connection_id_; |
- AccessPolicyDelegate* delegate_; |
- |
- DISALLOW_COPY_AND_ASSIGN(DefaultAccessPolicy); |
-}; |
- |
-} // namespace mus |
- |
-#endif // COMPONENTS_MUS_DEFAULT_ACCESS_POLICY_H_ |