| 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_TARGET_H_ | 5 #ifndef UI_EVENTS_EVENT_TARGET_H_ |
| 6 #define UI_EVENTS_EVENT_TARGET_H_ | 6 #define UI_EVENTS_EVENT_TARGET_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/base/ui_export.h" | |
| 11 #include "ui/events/event_handler.h" | 10 #include "ui/events/event_handler.h" |
| 11 #include "ui/events/events_export.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 | 14 |
| 15 class EventDispatcher; | 15 class EventDispatcher; |
| 16 | 16 |
| 17 class UI_EXPORT EventTarget : public EventHandler { | 17 class EVENTS_EXPORT EventTarget : public EventHandler { |
| 18 public: | 18 public: |
| 19 typedef std::vector<EventTarget*> EventTargets; | 19 typedef std::vector<EventTarget*> EventTargets; |
| 20 | 20 |
| 21 class TestApi { | 21 class TestApi { |
| 22 public: | 22 public: |
| 23 explicit TestApi(EventTarget* target) : target_(target) {} | 23 explicit TestApi(EventTarget* target) : target_(target) {} |
| 24 | 24 |
| 25 const EventHandlerList& pre_target_handlers() { | 25 const EventHandlerList& pre_target_handlers() { |
| 26 return target_->pre_target_list_; | 26 return target_->pre_target_list_; |
| 27 } | 27 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 EventHandlerList pre_target_list_; | 99 EventHandlerList pre_target_list_; |
| 100 EventHandlerList post_target_list_; | 100 EventHandlerList post_target_list_; |
| 101 EventHandler* target_handler_; | 101 EventHandler* target_handler_; |
| 102 | 102 |
| 103 DISALLOW_COPY_AND_ASSIGN(EventTarget); | 103 DISALLOW_COPY_AND_ASSIGN(EventTarget); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace ui | 106 } // namespace ui |
| 107 | 107 |
| 108 #endif // UI_EVENTS_EVENT_TARGET_H_ | 108 #endif // UI_EVENTS_EVENT_TARGET_H_ |
| OLD | NEW |