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/event_dispatcher.h" |
6 | 6 |
7 #include "components/mus/server_view.h" | 7 #include "components/mus/server_view.h" |
8 #include "components/mus/view_coordinate_conversions.h" | 8 #include "components/mus/view_coordinate_conversions.h" |
9 #include "components/mus/view_locator.h" | 9 #include "components/mus/view_locator.h" |
10 #include "components/mus/view_tree_host_impl.h" | 10 #include "components/mus/view_tree_host_impl.h" |
11 #include "ui/gfx/geometry/point.h" | 11 #include "ui/gfx/geometry/point.h" |
12 #include "ui/gfx/geometry/point_f.h" | 12 #include "ui/gfx/geometry/point_f.h" |
13 | 13 |
14 namespace view_manager { | 14 namespace mus { |
15 | 15 |
16 EventDispatcher::EventDispatcher(ViewTreeHostImpl* view_tree_host) | 16 EventDispatcher::EventDispatcher(ViewTreeHostImpl* view_tree_host) |
17 : view_tree_host_(view_tree_host) {} | 17 : view_tree_host_(view_tree_host) {} |
18 | 18 |
19 EventDispatcher::~EventDispatcher() {} | 19 EventDispatcher::~EventDispatcher() {} |
20 | 20 |
21 void EventDispatcher::AddAccelerator(uint32_t id, | 21 void EventDispatcher::AddAccelerator(uint32_t id, |
22 mojo::KeyboardCode keyboard_code, | 22 mojo::KeyboardCode keyboard_code, |
23 mojo::EventFlags flags) { | 23 mojo::EventFlags flags) { |
24 #if !defined(NDEBUG) | 24 #if !defined(NDEBUG) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 root, target, gfx::PointF(event->pointer_data->location->x, | 86 root, target, gfx::PointF(event->pointer_data->location->x, |
87 event->pointer_data->location->y))); | 87 event->pointer_data->location->y))); |
88 event->pointer_data->location->x = local_point.x(); | 88 event->pointer_data->location->x = local_point.x(); |
89 event->pointer_data->location->y = local_point.y(); | 89 event->pointer_data->location->y = local_point.y(); |
90 return target; | 90 return target; |
91 } | 91 } |
92 | 92 |
93 return focused_view; | 93 return focused_view; |
94 } | 94 } |
95 | 95 |
96 } // namespace view_manager | 96 } // namespace mus |
OLD | NEW |