| 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 "mojo/services/view_manager/view_manager_service_impl.h" | 5 #include "mojo/services/view_manager/view_manager_service_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | 8 #include "mojo/converters/geometry_type_converters.h" |
| 9 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" | 9 #include "mojo/converters/input_events_type_converters.h" |
| 10 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" | 10 #include "mojo/converters/surfaces_type_converters.h" |
| 11 #include "mojo/services/view_manager/connection_manager.h" | 11 #include "mojo/services/view_manager/connection_manager.h" |
| 12 #include "mojo/services/view_manager/default_access_policy.h" | 12 #include "mojo/services/view_manager/default_access_policy.h" |
| 13 #include "mojo/services/view_manager/server_view.h" | 13 #include "mojo/services/view_manager/server_view.h" |
| 14 #include "mojo/services/view_manager/window_manager_access_policy.h" | 14 #include "mojo/services/view_manager/window_manager_access_policy.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace service { | 17 namespace service { |
| 18 | 18 |
| 19 ViewManagerServiceImpl::ViewManagerServiceImpl( | 19 ViewManagerServiceImpl::ViewManagerServiceImpl( |
| 20 ConnectionManager* connection_manager, | 20 ConnectionManager* connection_manager, |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 555 |
| 556 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( | 556 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( |
| 557 const ServerView* view) const { | 557 const ServerView* view) const { |
| 558 ViewManagerServiceImpl* connection = | 558 ViewManagerServiceImpl* connection = |
| 559 connection_manager_->GetConnectionWithRoot(view->id()); | 559 connection_manager_->GetConnectionWithRoot(view->id()); |
| 560 return connection && connection != this; | 560 return connection && connection != this; |
| 561 } | 561 } |
| 562 | 562 |
| 563 } // namespace service | 563 } // namespace service |
| 564 } // namespace mojo | 564 } // namespace mojo |
| OLD | NEW |