| 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/services/public/cpp/geometry/geometry_type_converters.h" |
| 9 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" | 9 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" |
| 10 #include "mojo/services/view_manager/node.h" | 10 #include "mojo/services/view_manager/node.h" |
| 11 #include "mojo/services/view_manager/root_node_manager.h" | 11 #include "mojo/services/view_manager/root_node_manager.h" |
| 12 #include "mojo/services/view_manager/view.h" | 12 #include "mojo/services/view_manager/view.h" |
| 13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
| 14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
| 15 #include "ui/gfx/codec/png_codec.h" | 15 #include "ui/gfx/codec/png_codec.h" |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 namespace view_manager { | |
| 19 namespace service { | 18 namespace service { |
| 20 | 19 |
| 21 ViewManagerServiceImpl::ViewManagerServiceImpl( | 20 ViewManagerServiceImpl::ViewManagerServiceImpl( |
| 22 RootNodeManager* root_node_manager, | 21 RootNodeManager* root_node_manager, |
| 23 ConnectionSpecificId creator_id, | 22 ConnectionSpecificId creator_id, |
| 24 const std::string& creator_url, | 23 const std::string& creator_url, |
| 25 const std::string& url, | 24 const std::string& url, |
| 26 const NodeId& root_id) | 25 const NodeId& root_id) |
| 27 : root_node_manager_(root_node_manager), | 26 : root_node_manager_(root_node_manager), |
| 28 id_(root_node_manager_->GetAndAdvanceNextConnectionId()), | 27 id_(root_node_manager_->GetAndAdvanceNextConnectionId()), |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 GetUnknownNodesFrom(GetNode(NodeIdFromTransportId(*i)), &to_send); | 847 GetUnknownNodesFrom(GetNode(NodeIdFromTransportId(*i)), &to_send); |
| 849 } | 848 } |
| 850 | 849 |
| 851 client()->OnViewManagerConnectionEstablished( | 850 client()->OnViewManagerConnectionEstablished( |
| 852 id_, | 851 id_, |
| 853 creator_url_, | 852 creator_url_, |
| 854 NodesToNodeDatas(to_send)); | 853 NodesToNodeDatas(to_send)); |
| 855 } | 854 } |
| 856 | 855 |
| 857 } // namespace service | 856 } // namespace service |
| 858 } // namespace view_manager | |
| 859 } // namespace mojo | 857 } // namespace mojo |
| OLD | NEW |