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 "services/ui/ws/event_dispatcher.h" | 5 #include "services/ui/ws/event_dispatcher.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
| 9 #include "base/memory/ptr_util.h" |
9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
10 #include "services/ui/ws/accelerator.h" | 11 #include "services/ui/ws/accelerator.h" |
11 #include "services/ui/ws/display.h" | 12 #include "services/ui/ws/display.h" |
12 #include "services/ui/ws/drag_controller.h" | 13 #include "services/ui/ws/drag_controller.h" |
13 #include "services/ui/ws/drag_source.h" | 14 #include "services/ui/ws/drag_source.h" |
14 #include "services/ui/ws/event_dispatcher_delegate.h" | 15 #include "services/ui/ws/event_dispatcher_delegate.h" |
15 #include "services/ui/ws/server_window.h" | 16 #include "services/ui/ws/server_window.h" |
16 #include "services/ui/ws/server_window_delegate.h" | 17 #include "services/ui/ws/server_window_delegate.h" |
17 #include "services/ui/ws/window_coordinate_conversions.h" | 18 #include "services/ui/ws/window_coordinate_conversions.h" |
18 #include "services/ui/ws/window_finder.h" | 19 #include "services/ui/ws/window_finder.h" |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 if (mouse_cursor_source_window_ == window) | 617 if (mouse_cursor_source_window_ == window) |
617 mouse_cursor_source_window_ = nullptr; | 618 mouse_cursor_source_window_ = nullptr; |
618 } | 619 } |
619 | 620 |
620 void EventDispatcher::OnDragCursorUpdated() { | 621 void EventDispatcher::OnDragCursorUpdated() { |
621 delegate_->UpdateNativeCursorFromDispatcher(); | 622 delegate_->UpdateNativeCursorFromDispatcher(); |
622 } | 623 } |
623 | 624 |
624 } // namespace ws | 625 } // namespace ws |
625 } // namespace ui | 626 } // namespace ui |
OLD | NEW |