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/message_loop/message_loop.h" |
9 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
10 #include "services/service_manager/public/cpp/connector.h" | 11 #include "services/service_manager/public/cpp/connector.h" |
11 #include "services/ui/public/cpp/gpu/gpu.h" | 12 #include "services/ui/public/cpp/gpu/gpu.h" |
12 #include "services/ui/public/cpp/property_type_converters.h" | 13 #include "services/ui/public/cpp/property_type_converters.h" |
13 #include "services/ui/public/interfaces/constants.mojom.h" | 14 #include "services/ui/public/interfaces/constants.mojom.h" |
14 #include "services/ui/public/interfaces/event_matcher.mojom.h" | 15 #include "services/ui/public/interfaces/event_matcher.mojom.h" |
15 #include "services/ui/public/interfaces/window_manager.mojom.h" | 16 #include "services/ui/public/interfaces/window_manager.mojom.h" |
16 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
17 #include "ui/aura/mus/capture_synchronizer.h" | 18 #include "ui/aura/mus/capture_synchronizer.h" |
18 #include "ui/aura/mus/mus_context_factory.h" | 19 #include "ui/aura/mus/mus_context_factory.h" |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // TODO: this likely gets z-order wrong. http://crbug.com/663606. | 318 // TODO: this likely gets z-order wrong. http://crbug.com/663606. |
318 gfx::Point relative_point(point); | 319 gfx::Point relative_point(point); |
319 window_tree_host->ConvertScreenInPixelsToDIP(&relative_point); | 320 window_tree_host->ConvertScreenInPixelsToDIP(&relative_point); |
320 if (gfx::Rect(root->bounds().size()).Contains(relative_point)) | 321 if (gfx::Rect(root->bounds().size()).Contains(relative_point)) |
321 return root->GetEventHandlerForPoint(relative_point); | 322 return root->GetEventHandlerForPoint(relative_point); |
322 } | 323 } |
323 return nullptr; | 324 return nullptr; |
324 } | 325 } |
325 | 326 |
326 } // namespace views | 327 } // namespace views |
OLD | NEW |