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

Unified Diff: components/mus/window_manager_access_policy.cc

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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
« no previous file with comments | « components/mus/window_manager_access_policy.h ('k') | components/pdf_viewer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/window_manager_access_policy.cc
diff --git a/components/view_manager/window_manager_access_policy.cc b/components/mus/window_manager_access_policy.cc
similarity index 90%
rename from components/view_manager/window_manager_access_policy.cc
rename to components/mus/window_manager_access_policy.cc
index 7a6751c7f23d524b629ad7ae1453ee06a251015e..5d350db508d5a3f16cc57d7fca2f4fd0a758c468 100644
--- a/components/view_manager/window_manager_access_policy.cc
+++ b/components/mus/window_manager_access_policy.cc
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/view_manager/window_manager_access_policy.h"
+#include "components/mus/window_manager_access_policy.h"
-#include "components/view_manager/access_policy_delegate.h"
-#include "components/view_manager/server_view.h"
+#include "components/mus/access_policy_delegate.h"
+#include "components/mus/server_view.h"
namespace view_manager {
@@ -15,11 +15,9 @@ namespace view_manager {
WindowManagerAccessPolicy::WindowManagerAccessPolicy(
mojo::ConnectionSpecificId connection_id,
AccessPolicyDelegate* delegate)
- : connection_id_(connection_id), delegate_(delegate) {
-}
+ : connection_id_(connection_id), delegate_(delegate) {}
-WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {
-}
+WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {}
bool WindowManagerAccessPolicy::CanRemoveViewFromParent(
const ServerView* view) const {
@@ -59,7 +57,7 @@ bool WindowManagerAccessPolicy::CanChangeViewVisibility(
const ServerView* view) const {
// The WindowManager can change the visibility of the root too.
return view->id().connection_id == connection_id_ ||
- (view->GetRoot() == view);
+ (view->GetRoot() == view);
}
bool WindowManagerAccessPolicy::CanSetViewSurfaceId(
« no previous file with comments | « components/mus/window_manager_access_policy.h ('k') | components/pdf_viewer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698