| 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/display_manager.h" | 5 #include "components/view_manager/display_manager.h" |
| 6 | 6 |
| 7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
| 8 #include "components/gpu/public/interfaces/gpu.mojom.h" |
| 9 #include "components/surfaces/public/interfaces/quads.mojom.h" |
| 10 #include "components/surfaces/public/interfaces/surfaces.mojom.h" |
| 8 #include "components/view_manager/connection_manager.h" | 11 #include "components/view_manager/connection_manager.h" |
| 9 #include "components/view_manager/server_view.h" | 12 #include "components/view_manager/server_view.h" |
| 10 #include "components/view_manager/view_coordinate_conversions.h" | 13 #include "components/view_manager/view_coordinate_conversions.h" |
| 11 #include "mojo/converters/geometry/geometry_type_converters.h" | 14 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 12 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 15 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
| 13 #include "mojo/converters/surfaces/surfaces_utils.h" | 16 #include "mojo/converters/surfaces/surfaces_utils.h" |
| 14 #include "mojo/converters/transform/transform_type_converters.h" | 17 #include "mojo/converters/transform/transform_type_converters.h" |
| 15 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio
n.h" | 18 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio
n.h" |
| 16 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" | 19 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.h" |
| 17 #include "third_party/mojo_services/src/gpu/public/interfaces/gpu.mojom.h" | |
| 18 #include "third_party/mojo_services/src/surfaces/public/interfaces/quads.mojom.h
" | |
| 19 #include "third_party/mojo_services/src/surfaces/public/interfaces/surfaces.mojo
m.h" | |
| 20 | 20 |
| 21 using mojo::Rect; | 21 using mojo::Rect; |
| 22 using mojo::Size; | 22 using mojo::Size; |
| 23 | 23 |
| 24 namespace view_manager { | 24 namespace view_manager { |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 void DrawViewTree(mojo::Pass* pass, | 27 void DrawViewTree(mojo::Pass* pass, |
| 28 const ServerView* view, | 28 const ServerView* view, |
| 29 const gfx::Vector2d& parent_to_root_origin_offset, | 29 const gfx::Vector2d& parent_to_root_origin_offset, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 &DefaultDisplayManager::OnMetricsChanged, weak_factory_.GetWeakPtr())); | 176 &DefaultDisplayManager::OnMetricsChanged, weak_factory_.GetWeakPtr())); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void DefaultDisplayManager::OnConnectionError() { | 179 void DefaultDisplayManager::OnConnectionError() { |
| 180 // This is called when the native_viewport is torn down before | 180 // This is called when the native_viewport is torn down before |
| 181 // ~DefaultDisplayManager may be called. | 181 // ~DefaultDisplayManager may be called. |
| 182 native_viewport_closed_callback_.Run(); | 182 native_viewport_closed_callback_.Run(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace view_manager | 185 } // namespace view_manager |
| OLD | NEW |