| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |