| OLD | NEW |
| 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 "services/view_manager/view_manager_service_impl.h" | 5 #include "services/view_manager/view_manager_service_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "mojo/converters/geometry/geometry_type_converters.h" | 9 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 10 #include "mojo/converters/input_events/input_events_type_converters.h" | 10 #include "mojo/converters/input_events/input_events_type_converters.h" |
| 11 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 11 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
| 12 #include "mojo/services/public/interfaces/window_manager/window_manager_internal
.mojom.h" | 12 #include "mojo/services/window_manager/public/interfaces/window_manager_internal
.mojom.h" |
| 13 #include "services/view_manager/connection_manager.h" | 13 #include "services/view_manager/connection_manager.h" |
| 14 #include "services/view_manager/default_access_policy.h" | 14 #include "services/view_manager/default_access_policy.h" |
| 15 #include "services/view_manager/server_view.h" | 15 #include "services/view_manager/server_view.h" |
| 16 #include "services/view_manager/window_manager_access_policy.h" | 16 #include "services/view_manager/window_manager_access_policy.h" |
| 17 | 17 |
| 18 namespace mojo { | 18 namespace mojo { |
| 19 namespace service { | 19 namespace service { |
| 20 | 20 |
| 21 ViewManagerServiceImpl::ViewManagerServiceImpl( | 21 ViewManagerServiceImpl::ViewManagerServiceImpl( |
| 22 ConnectionManager* connection_manager, | 22 ConnectionManager* connection_manager, |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 | 591 |
| 592 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( | 592 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( |
| 593 const ServerView* view) const { | 593 const ServerView* view) const { |
| 594 ViewManagerServiceImpl* connection = | 594 ViewManagerServiceImpl* connection = |
| 595 connection_manager_->GetConnectionWithRoot(view->id()); | 595 connection_manager_->GetConnectionWithRoot(view->id()); |
| 596 return connection && connection != this; | 596 return connection && connection != this; |
| 597 } | 597 } |
| 598 | 598 |
| 599 } // namespace service | 599 } // namespace service |
| 600 } // namespace mojo | 600 } // namespace mojo |
| OLD | NEW |