| 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/display_manager.h" | 5 #include "mojo/services/view_manager/display_manager.h" |
| 6 | 6 |
| 7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "cc/surfaces/surface_id_allocator.h" | 8 #include "cc/surfaces/surface_id_allocator.h" |
| 9 #include "mojo/converters/geometry_type_converters.h" |
| 10 #include "mojo/converters/surfaces_type_converters.h" |
| 11 #include "mojo/converters/surfaces_utils.h" |
| 9 #include "mojo/public/cpp/application/application_connection.h" | 12 #include "mojo/public/cpp/application/application_connection.h" |
| 10 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | |
| 11 #include "mojo/services/public/cpp/surfaces/surfaces_type_converters.h" | |
| 12 #include "mojo/services/public/cpp/surfaces/surfaces_utils.h" | |
| 13 #include "mojo/services/public/interfaces/gpu/gpu.mojom.h" | 13 #include "mojo/services/public/interfaces/gpu/gpu.mojom.h" |
| 14 #include "mojo/services/public/interfaces/surfaces/quads.mojom.h" | 14 #include "mojo/services/public/interfaces/surfaces/quads.mojom.h" |
| 15 #include "mojo/services/view_manager/connection_manager.h" | 15 #include "mojo/services/view_manager/connection_manager.h" |
| 16 | 16 |
| 17 namespace mojo { | 17 namespace mojo { |
| 18 namespace service { | 18 namespace service { |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 gfx::Rect ConvertRectToRoot(const ServerView* view, const gfx::Rect& bounds) { | 21 gfx::Rect ConvertRectToRoot(const ServerView* view, const gfx::Rect& bounds) { |
| 22 gfx::Point origin(bounds.origin()); | 22 gfx::Point origin(bounds.origin()); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 connection_manager_->DispatchViewInputEventToWindowManager(event.Pass()); | 163 connection_manager_->DispatchViewInputEventToWindowManager(event.Pass()); |
| 164 callback.Run(); | 164 callback.Run(); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void DisplayManager::ReturnResources(Array<ReturnedResourcePtr> resources) { | 167 void DisplayManager::ReturnResources(Array<ReturnedResourcePtr> resources) { |
| 168 DCHECK_EQ(0u, resources.size()); | 168 DCHECK_EQ(0u, resources.size()); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace service | 171 } // namespace service |
| 172 } // namespace mojo | 172 } // namespace mojo |
| OLD | NEW |