| 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" | |
| 11 #include "components/view_manager/connection_manager.h" | 8 #include "components/view_manager/connection_manager.h" |
| 9 #include "components/view_manager/public/interfaces/gpu.mojom.h" |
| 10 #include "components/view_manager/public/interfaces/quads.mojom.h" |
| 11 #include "components/view_manager/public/interfaces/surfaces.mojom.h" |
| 12 #include "components/view_manager/server_view.h" | 12 #include "components/view_manager/server_view.h" |
| 13 #include "components/view_manager/view_coordinate_conversions.h" | 13 #include "components/view_manager/view_coordinate_conversions.h" |
| 14 #include "mojo/application/public/cpp/application_connection.h" | 14 #include "mojo/application/public/cpp/application_connection.h" |
| 15 #include "mojo/application/public/cpp/application_impl.h" | 15 #include "mojo/application/public/cpp/application_impl.h" |
| 16 #include "mojo/converters/geometry/geometry_type_converters.h" | 16 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 17 #include "mojo/converters/surfaces/surfaces_type_converters.h" | 17 #include "mojo/converters/surfaces/surfaces_type_converters.h" |
| 18 #include "mojo/converters/surfaces/surfaces_utils.h" | 18 #include "mojo/converters/surfaces/surfaces_utils.h" |
| 19 #include "mojo/converters/transform/transform_type_converters.h" | 19 #include "mojo/converters/transform/transform_type_converters.h" |
| 20 | 20 |
| 21 using mojo::Rect; | 21 using mojo::Rect; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 &DefaultDisplayManager::OnMetricsChanged, weak_factory_.GetWeakPtr())); | 180 &DefaultDisplayManager::OnMetricsChanged, weak_factory_.GetWeakPtr())); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void DefaultDisplayManager::OnConnectionError() { | 183 void DefaultDisplayManager::OnConnectionError() { |
| 184 // This is called when the native_viewport is torn down before | 184 // This is called when the native_viewport is torn down before |
| 185 // ~DefaultDisplayManager may be called. | 185 // ~DefaultDisplayManager may be called. |
| 186 native_viewport_closed_callback_.Run(); | 186 native_viewport_closed_callback_.Run(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace view_manager | 189 } // namespace view_manager |
| OLD | NEW |