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_BASE_EVENTS_EVENT_TARGET_H_ | 5 #ifndef UI_BASE_EVENTS_EVENT_TARGET_H_ |
6 #define UI_BASE_EVENTS_EVENT_TARGET_H_ | 6 #define UI_BASE_EVENTS_EVENT_TARGET_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "ui/base/events/event_handler.h" | 9 #include "ui/base/events/event_handler.h" |
10 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_export.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 // Returns the list of handlers that should receive the event after the | 81 // Returns the list of handlers that should receive the event after the |
82 // target. The handlers from the outermost target are last in the list, and | 82 // target. The handlers from the outermost target are last in the list, and |
83 // the handlers on |this| are the first in the list. | 83 // the handlers on |this| are the first in the list. |
84 void GetPostTargetHandlers(EventHandlerList* list); | 84 void GetPostTargetHandlers(EventHandlerList* list); |
85 | 85 |
86 // Overridden from EventHandler: | 86 // Overridden from EventHandler: |
87 virtual EventResult OnKeyEvent(KeyEvent* event) OVERRIDE; | 87 virtual EventResult OnKeyEvent(KeyEvent* event) OVERRIDE; |
88 virtual EventResult OnMouseEvent(MouseEvent* event) OVERRIDE; | 88 virtual EventResult OnMouseEvent(MouseEvent* event) OVERRIDE; |
89 virtual EventResult OnScrollEvent(ScrollEvent* event) OVERRIDE; | 89 virtual EventResult OnScrollEvent(ScrollEvent* event) OVERRIDE; |
90 virtual TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; | 90 virtual EventResult OnTouchEvent(TouchEvent* event) OVERRIDE; |
91 virtual EventResult OnGestureEvent(GestureEvent* event) OVERRIDE; | 91 virtual EventResult OnGestureEvent(GestureEvent* event) OVERRIDE; |
92 | 92 |
93 EventHandlerList pre_target_list_; | 93 EventHandlerList pre_target_list_; |
94 EventHandlerList post_target_list_; | 94 EventHandlerList post_target_list_; |
95 EventHandler* target_handler_; | 95 EventHandler* target_handler_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(EventTarget); | 97 DISALLOW_COPY_AND_ASSIGN(EventTarget); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace ui | 100 } // namespace ui |
101 | 101 |
102 #endif // UI_BASE_EVENTS_EVENT_TARGET_H_ | 102 #endif // UI_BASE_EVENTS_EVENT_TARGET_H_ |
OLD | NEW |