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 "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "mojo/converters/geometry/geometry_type_converters.h" | 10 #include "mojo/converters/geometry/geometry_type_converters.h" |
11 #include "mojo/converters/input_events/input_events_type_converters.h" | 11 #include "mojo/converters/input_events/input_events_type_converters.h" |
12 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 12 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
13 #include "mojo/services/window_manager/public/interfaces/window_manager_internal
.mojom.h" | 13 #include "mojo/services/window_manager/interfaces/window_manager_internal.mojom.
h" |
14 #include "services/view_manager/connection_manager.h" | 14 #include "services/view_manager/connection_manager.h" |
15 #include "services/view_manager/default_access_policy.h" | 15 #include "services/view_manager/default_access_policy.h" |
16 #include "services/view_manager/display_manager.h" | 16 #include "services/view_manager/display_manager.h" |
17 #include "services/view_manager/server_view.h" | 17 #include "services/view_manager/server_view.h" |
18 #include "services/view_manager/window_manager_access_policy.h" | 18 #include "services/view_manager/window_manager_access_policy.h" |
19 | 19 |
20 using mojo::Array; | 20 using mojo::Array; |
21 using mojo::Callback; | 21 using mojo::Callback; |
22 using mojo::Id; | 22 using mojo::Id; |
23 using mojo::InterfaceRequest; | 23 using mojo::InterfaceRequest; |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 } | 647 } |
648 | 648 |
649 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( | 649 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( |
650 const ServerView* view) const { | 650 const ServerView* view) const { |
651 ViewManagerServiceImpl* connection = | 651 ViewManagerServiceImpl* connection = |
652 connection_manager_->GetConnectionWithRoot(view->id()); | 652 connection_manager_->GetConnectionWithRoot(view->id()); |
653 return connection && connection != this; | 653 return connection && connection != this; |
654 } | 654 } |
655 | 655 |
656 } // namespace view_manager | 656 } // namespace view_manager |
OLD | NEW |