| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 12 #include "base/time/default_tick_clock.h" | 12 #include "base/time/default_tick_clock.h" |
| 13 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
| 14 #include "ui/events/event_source.h" | 14 #include "ui/events/event_source.h" |
| 15 #include "ui/events/event_utils.h" | 15 #include "ui/events/event_utils.h" |
| 16 #include "ui/events/test/events_test_utils.h" | 16 #include "ui/events/test/events_test_utils.h" |
| 17 #include "ui/gfx/vector2d_conversions.h" | 17 #include "ui/gfx/geometry/vector2d_conversions.h" |
| 18 | 18 |
| 19 #if defined(USE_X11) | 19 #if defined(USE_X11) |
| 20 #include <X11/Xlib.h> | 20 #include <X11/Xlib.h> |
| 21 #include "ui/events/test/events_test_utils_x11.h" | 21 #include "ui/events/test/events_test_utils_x11.h" |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #if defined(OS_WIN) | 24 #if defined(OS_WIN) |
| 25 #include "ui/events/keycodes/keyboard_code_conversion.h" | 25 #include "ui/events/keycodes/keyboard_code_conversion.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 return default_delegate; | 623 return default_delegate; |
| 624 } | 624 } |
| 625 | 625 |
| 626 EventGeneratorDelegate* EventGenerator::delegate() { | 626 EventGeneratorDelegate* EventGenerator::delegate() { |
| 627 return const_cast<EventGeneratorDelegate*>( | 627 return const_cast<EventGeneratorDelegate*>( |
| 628 const_cast<const EventGenerator*>(this)->delegate()); | 628 const_cast<const EventGenerator*>(this)->delegate()); |
| 629 } | 629 } |
| 630 | 630 |
| 631 } // namespace test | 631 } // namespace test |
| 632 } // namespace ui | 632 } // namespace ui |
| OLD | NEW |