OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/events/test/event_generator.h" | 5 #include "ui/events/test/event_generator.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "base/time/tick_clock.h" | 18 #include "base/time/tick_clock.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "ui/events/event.h" | 20 #include "ui/events/event.h" |
21 #include "ui/events/event_source.h" | 21 #include "ui/events/event_source.h" |
22 #include "ui/events/event_utils.h" | 22 #include "ui/events/event_utils.h" |
23 #include "ui/events/test/events_test_utils.h" | 23 #include "ui/events/test/events_test_utils.h" |
24 #include "ui/gfx/geometry/vector2d_conversions.h" | 24 #include "ui/gfx/geometry/vector2d_conversions.h" |
25 | 25 |
26 #if defined(USE_X11) | 26 #if defined(USE_X11) |
27 #include <X11/Xlib.h> | 27 #include <X11/Xlib.h> |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 return default_delegate; | 693 return default_delegate; |
694 } | 694 } |
695 | 695 |
696 EventGeneratorDelegate* EventGenerator::delegate() { | 696 EventGeneratorDelegate* EventGenerator::delegate() { |
697 return const_cast<EventGeneratorDelegate*>( | 697 return const_cast<EventGeneratorDelegate*>( |
698 const_cast<const EventGenerator*>(this)->delegate()); | 698 const_cast<const EventGenerator*>(this)->delegate()); |
699 } | 699 } |
700 | 700 |
701 } // namespace test | 701 } // namespace test |
702 } // namespace ui | 702 } // namespace ui |
OLD | NEW |