Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1343)

Side by Side Diff: components/view_manager/display_manager.cc

Issue 1139123006: Fork the mojo shell interfaces used by Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 8 #include "components/gpu/public/interfaces/gpu.mojom.h"
9 #include "components/surfaces/public/interfaces/quads.mojom.h" 9 #include "components/surfaces/public/interfaces/quads.mojom.h"
10 #include "components/surfaces/public/interfaces/surfaces.mojom.h" 10 #include "components/surfaces/public/interfaces/surfaces.mojom.h"
11 #include "components/view_manager/connection_manager.h" 11 #include "components/view_manager/connection_manager.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"
15 #include "mojo/application/public/cpp/application_impl.h"
14 #include "mojo/converters/geometry/geometry_type_converters.h" 16 #include "mojo/converters/geometry/geometry_type_converters.h"
15 #include "mojo/converters/surfaces/surfaces_type_converters.h" 17 #include "mojo/converters/surfaces/surfaces_type_converters.h"
16 #include "mojo/converters/surfaces/surfaces_utils.h" 18 #include "mojo/converters/surfaces/surfaces_utils.h"
17 #include "mojo/converters/transform/transform_type_converters.h" 19 #include "mojo/converters/transform/transform_type_converters.h"
18 #include "third_party/mojo/src/mojo/public/cpp/application/application_connectio n.h"
19 #include "third_party/mojo/src/mojo/public/cpp/application/application_impl.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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 &DefaultDisplayManager::OnMetricsChanged, weak_factory_.GetWeakPtr())); 174 &DefaultDisplayManager::OnMetricsChanged, weak_factory_.GetWeakPtr()));
175 } 175 }
176 176
177 void DefaultDisplayManager::OnConnectionError() { 177 void DefaultDisplayManager::OnConnectionError() {
178 // This is called when the native_viewport is torn down before 178 // This is called when the native_viewport is torn down before
179 // ~DefaultDisplayManager may be called. 179 // ~DefaultDisplayManager may be called.
180 native_viewport_closed_callback_.Run(); 180 native_viewport_closed_callback_.Run();
181 } 181 }
182 182
183 } // namespace view_manager 183 } // namespace view_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698