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

Side by Side Diff: components/mus/window_manager_access_policy.cc

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « components/mus/window_manager_access_policy.h ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/mus/window_manager_access_policy.h" 5 #include "components/mus/window_manager_access_policy.h"
6 6
7 #include "components/mus/access_policy_delegate.h" 7 #include "components/mus/access_policy_delegate.h"
8 #include "components/mus/server_view.h" 8 #include "components/mus/server_view.h"
9 9
10 namespace mus { 10 namespace view_manager {
11 11
12 // TODO(sky): document why this differs from default for each case. Maybe want 12 // TODO(sky): document why this differs from default for each case. Maybe want
13 // to subclass DefaultAccessPolicy. 13 // to subclass DefaultAccessPolicy.
14 14
15 WindowManagerAccessPolicy::WindowManagerAccessPolicy( 15 WindowManagerAccessPolicy::WindowManagerAccessPolicy(
16 ConnectionSpecificId connection_id, 16 mojo::ConnectionSpecificId connection_id,
17 AccessPolicyDelegate* delegate) 17 AccessPolicyDelegate* delegate)
18 : connection_id_(connection_id), delegate_(delegate) {} 18 : connection_id_(connection_id), delegate_(delegate) {}
19 19
20 WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {} 20 WindowManagerAccessPolicy::~WindowManagerAccessPolicy() {}
21 21
22 bool WindowManagerAccessPolicy::CanRemoveViewFromParent( 22 bool WindowManagerAccessPolicy::CanRemoveViewFromParent(
23 const ServerView* view) const { 23 const ServerView* view) const {
24 return true; 24 return true;
25 } 25 }
26 26
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 const ServerView* WindowManagerAccessPolicy::GetViewForFocusChange( 100 const ServerView* WindowManagerAccessPolicy::GetViewForFocusChange(
101 const ServerView* focused) { 101 const ServerView* focused) {
102 return focused; 102 return focused;
103 } 103 }
104 104
105 bool WindowManagerAccessPolicy::IsViewKnown(const ServerView* view) const { 105 bool WindowManagerAccessPolicy::IsViewKnown(const ServerView* view) const {
106 return delegate_->IsViewKnownForAccessPolicy(view); 106 return delegate_->IsViewKnownForAccessPolicy(view);
107 } 107 }
108 108
109 } // namespace mus 109 } // namespace view_manager
OLDNEW
« no previous file with comments | « components/mus/window_manager_access_policy.h ('k') | components/pdf_viewer/pdf_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698