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

Side by Side Diff: ui/views/mus/mus_client.cc

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ui/views/mus/mus_client.h" 5 #include "ui/views/mus/mus_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "services/service_manager/public/cpp/connection.h"
11 #include "services/service_manager/public/cpp/connector.h" 10 #include "services/service_manager/public/cpp/connector.h"
12 #include "services/ui/public/cpp/gpu/gpu.h" 11 #include "services/ui/public/cpp/gpu/gpu.h"
13 #include "services/ui/public/cpp/property_type_converters.h" 12 #include "services/ui/public/cpp/property_type_converters.h"
14 #include "services/ui/public/interfaces/constants.mojom.h" 13 #include "services/ui/public/interfaces/constants.mojom.h"
15 #include "services/ui/public/interfaces/event_matcher.mojom.h" 14 #include "services/ui/public/interfaces/event_matcher.mojom.h"
16 #include "services/ui/public/interfaces/window_manager.mojom.h" 15 #include "services/ui/public/interfaces/window_manager.mojom.h"
17 #include "ui/aura/env.h" 16 #include "ui/aura/env.h"
18 #include "ui/aura/mus/capture_synchronizer.h" 17 #include "ui/aura/mus/capture_synchronizer.h"
19 #include "ui/aura/mus/mus_context_factory.h" 18 #include "ui/aura/mus/mus_context_factory.h"
20 #include "ui/aura/mus/property_converter.h" 19 #include "ui/aura/mus/property_converter.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // TODO: this likely gets z-order wrong. http://crbug.com/663606. 298 // TODO: this likely gets z-order wrong. http://crbug.com/663606.
300 gfx::Point relative_point(point); 299 gfx::Point relative_point(point);
301 window_tree_host->ConvertScreenInPixelsToDIP(&relative_point); 300 window_tree_host->ConvertScreenInPixelsToDIP(&relative_point);
302 if (gfx::Rect(root->bounds().size()).Contains(relative_point)) 301 if (gfx::Rect(root->bounds().size()).Contains(relative_point))
303 return root->GetEventHandlerForPoint(relative_point); 302 return root->GetEventHandlerForPoint(relative_point);
304 } 303 }
305 return nullptr; 304 return nullptr;
306 } 305 }
307 306
308 } // namespace views 307 } // namespace views
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.cc ('k') | ui/views/mus/screen_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698