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

Side by Side Diff: mojo/services/view_manager/display_manager.cc

Issue 640893003: Move mojo/services/public/cpp TypeConverters to mojo/converters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore the directory and component structures and target names. Created 6 years, 2 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 "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/geometry_type_converters.h"
10 #include "mojo/converters/surfaces/surfaces_type_converters.h"
11 #include "mojo/converters/surfaces/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
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
OLDNEW
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698