OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mus/event_dispatcher.h" | 5 #include "components/mus/vm/event_dispatcher.h" |
6 | 6 |
7 #include "cc/surfaces/surface_id.h" | 7 #include "cc/surfaces/surface_id.h" |
8 #include "components/mus/connection_manager.h" | |
9 #include "components/mus/server_view.h" | |
10 #include "components/mus/server_view_delegate.h" | |
11 #include "components/mus/surfaces/surfaces_state.h" | 8 #include "components/mus/surfaces/surfaces_state.h" |
12 #include "components/mus/view_coordinate_conversions.h" | 9 #include "components/mus/vm/connection_manager.h" |
13 #include "components/mus/view_tree_host_impl.h" | 10 #include "components/mus/vm/server_view.h" |
| 11 #include "components/mus/vm/server_view_delegate.h" |
| 12 #include "components/mus/vm/view_coordinate_conversions.h" |
| 13 #include "components/mus/vm/view_tree_host_impl.h" |
14 #include "ui/gfx/geometry/point.h" | 14 #include "ui/gfx/geometry/point.h" |
15 #include "ui/gfx/geometry/point_f.h" | 15 #include "ui/gfx/geometry/point_f.h" |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 | 18 |
19 EventDispatcher::EventDispatcher(ViewTreeHostImpl* view_tree_host) | 19 EventDispatcher::EventDispatcher(ViewTreeHostImpl* view_tree_host) |
20 : view_tree_host_(view_tree_host) {} | 20 : view_tree_host_(view_tree_host) {} |
21 | 21 |
22 EventDispatcher::~EventDispatcher() {} | 22 EventDispatcher::~EventDispatcher() {} |
23 | 23 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // information to decide where to route input events. This should be fixed | 146 // information to decide where to route input events. This should be fixed |
147 // once we implement a UI scheduler. | 147 // once we implement a UI scheduler. |
148 if (target) { | 148 if (target) { |
149 transform_to_target_surface.TransformPoint(location); | 149 transform_to_target_surface.TransformPoint(location); |
150 return target; | 150 return target; |
151 } | 151 } |
152 return nullptr; | 152 return nullptr; |
153 } | 153 } |
154 | 154 |
155 } // namespace mus | 155 } // namespace mus |
OLD | NEW |