| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_EVENTS_EVENT_DISPATCHER_H_ | 5 #ifndef UI_EVENTS_EVENT_DISPATCHER_H_ |
| 6 #define UI_EVENTS_EVENT_DISPATCHER_H_ | 6 #define UI_EVENTS_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/auto_reset.h" | 8 #include "base/auto_reset.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
| 11 #include "ui/events/event_constants.h" | 11 #include "ui/events/event_constants.h" |
| 12 #include "ui/events/event_handler.h" | 12 #include "ui/events/event_handler.h" |
| 13 #include "ui/events/events_export.h" | 13 #include "ui/events/events_export.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 class EventDispatcher; | 17 class EventDispatcher; |
| 18 class EventTarget; | 18 class EventTarget; |
| 19 class EventTargeter; | |
| 20 | 19 |
| 21 struct EventDispatchDetails { | 20 struct EventDispatchDetails { |
| 22 EventDispatchDetails() | 21 EventDispatchDetails() |
| 23 : dispatcher_destroyed(false), | 22 : dispatcher_destroyed(false), |
| 24 target_destroyed(false) {} | 23 target_destroyed(false) {} |
| 25 bool dispatcher_destroyed; | 24 bool dispatcher_destroyed; |
| 26 bool target_destroyed; | 25 bool target_destroyed; |
| 27 }; | 26 }; |
| 28 | 27 |
| 29 class EVENTS_EXPORT EventDispatcherDelegate { | 28 class EVENTS_EXPORT EventDispatcherDelegate { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 Event* current_event_; | 98 Event* current_event_; |
| 100 | 99 |
| 101 EventHandlerList handler_list_; | 100 EventHandlerList handler_list_; |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); | 102 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace ui | 105 } // namespace ui |
| 107 | 106 |
| 108 #endif // UI_EVENTS_EVENT_DISPATCHER_H_ | 107 #endif // UI_EVENTS_EVENT_DISPATCHER_H_ |
| OLD | NEW |