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

Side by Side Diff: services/view_manager/view_manager_service_impl.cc

Issue 774473003: Move view_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 "mojo/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/public/interfaces/window_manager/window_manager_internal .mojom.h"
13 #include "mojo/services/view_manager/connection_manager.h" 13 #include "services/view_manager/connection_manager.h"
14 #include "mojo/services/view_manager/default_access_policy.h" 14 #include "services/view_manager/default_access_policy.h"
15 #include "mojo/services/view_manager/server_view.h" 15 #include "services/view_manager/server_view.h"
16 #include "mojo/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,
23 ConnectionSpecificId creator_id, 23 ConnectionSpecificId creator_id,
24 const std::string& creator_url, 24 const std::string& creator_url,
25 const std::string& url, 25 const std::string& url,
26 const ViewId& root_id) 26 const ViewId& root_id)
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698