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 "components/view_manager/view_manager_service_impl.h" | 5 #include "components/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 "components/view_manager/connection_manager.h" | 9 #include "components/view_manager/connection_manager.h" |
10 #include "components/view_manager/default_access_policy.h" | 10 #include "components/view_manager/default_access_policy.h" |
11 #include "components/view_manager/display_manager.h" | 11 #include "components/view_manager/display_manager.h" |
12 #include "components/view_manager/server_view.h" | 12 #include "components/view_manager/server_view.h" |
13 #include "components/view_manager/window_manager_access_policy.h" | 13 #include "components/view_manager/window_manager_access_policy.h" |
| 14 #include "components/window_manager/public/interfaces/window_manager_internal.mo
jom.h" |
14 #include "mojo/converters/geometry/geometry_type_converters.h" | 15 #include "mojo/converters/geometry/geometry_type_converters.h" |
15 #include "mojo/converters/input_events/input_events_type_converters.h" | 16 #include "mojo/converters/input_events/input_events_type_converters.h" |
16 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 17 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
17 #include "third_party/mojo_services/src/window_manager/public/interfaces/window_
manager_internal.mojom.h" | |
18 | 18 |
19 using mojo::Array; | 19 using mojo::Array; |
20 using mojo::Callback; | 20 using mojo::Callback; |
21 using mojo::Id; | 21 using mojo::Id; |
22 using mojo::InterfaceRequest; | 22 using mojo::InterfaceRequest; |
23 using mojo::OrderDirection; | 23 using mojo::OrderDirection; |
24 using mojo::Rect; | 24 using mojo::Rect; |
25 using mojo::ServiceProvider; | 25 using mojo::ServiceProvider; |
26 using mojo::ServiceProviderPtr; | 26 using mojo::ServiceProviderPtr; |
27 using mojo::String; | 27 using mojo::String; |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 } | 645 } |
646 | 646 |
647 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( | 647 bool ViewManagerServiceImpl::IsViewRootOfAnotherConnectionForAccessPolicy( |
648 const ServerView* view) const { | 648 const ServerView* view) const { |
649 ViewManagerServiceImpl* connection = | 649 ViewManagerServiceImpl* connection = |
650 connection_manager_->GetConnectionWithRoot(view->id()); | 650 connection_manager_->GetConnectionWithRoot(view->id()); |
651 return connection && connection != this; | 651 return connection && connection != this; |
652 } | 652 } |
653 | 653 |
654 } // namespace view_manager | 654 } // namespace view_manager |
OLD | NEW |