| 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/connection_manager.h" | 5 #include "services/view_manager/connection_manager.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.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/public/interfaces/application/service_provider.mojom.h" | 11 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 12 #include "mojo/services/view_manager/client_connection.h" | 12 #include "services/view_manager/client_connection.h" |
| 13 #include "mojo/services/view_manager/connection_manager_delegate.h" | 13 #include "services/view_manager/connection_manager_delegate.h" |
| 14 #include "mojo/services/view_manager/display_manager.h" | 14 #include "services/view_manager/display_manager.h" |
| 15 #include "mojo/services/view_manager/server_view.h" | 15 #include "services/view_manager/server_view.h" |
| 16 #include "mojo/services/view_manager/view_coordinate_conversions.h" | 16 #include "services/view_manager/view_coordinate_conversions.h" |
| 17 #include "mojo/services/view_manager/view_manager_service_impl.h" | 17 #include "services/view_manager/view_manager_service_impl.h" |
| 18 | 18 |
| 19 namespace mojo { | 19 namespace mojo { |
| 20 namespace service { | 20 namespace service { |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // Creates a copy of |view|. The copied view has |delegate| as its delegate. | 23 // Creates a copy of |view|. The copied view has |delegate| as its delegate. |
| 24 // This does not recurse. | 24 // This does not recurse. |
| 25 ServerView* CloneView(const ServerView* view, ServerViewDelegate* delegate) { | 25 ServerView* CloneView(const ServerView* view, ServerViewDelegate* delegate) { |
| 26 ServerView* clone = new ServerView(delegate, ClonedViewId()); | 26 ServerView* clone = new ServerView(delegate, ClonedViewId()); |
| 27 clone->SetBounds(view->bounds()); | 27 clone->SetBounds(view->bounds()); |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 gfx::Size new_size = size.To<gfx::Size>(); | 438 gfx::Size new_size = size.To<gfx::Size>(); |
| 439 display_manager_->SetViewportSize(new_size); | 439 display_manager_->SetViewportSize(new_size); |
| 440 } | 440 } |
| 441 | 441 |
| 442 void ConnectionManager::CloneAndAnimate(Id transport_view_id) { | 442 void ConnectionManager::CloneAndAnimate(Id transport_view_id) { |
| 443 CloneAndAnimate(ViewIdFromTransportId(transport_view_id)); | 443 CloneAndAnimate(ViewIdFromTransportId(transport_view_id)); |
| 444 } | 444 } |
| 445 | 445 |
| 446 } // namespace service | 446 } // namespace service |
| 447 } // namespace mojo | 447 } // namespace mojo |
| OLD | NEW |