| 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_CONSTANTS_EVENTS_EVENT_TARGET_H_ | 5 #ifndef UI_BASE_EVENTS_EVENT_CONSTANTS_EVENTS_EVENT_TARGET_H_ |
| 6 #define UI_BASE_EVENTS_EVENT_CONSTANTS_EVENTS_EVENT_TARGET_H_ | 6 #define UI_BASE_EVENTS_EVENT_CONSTANTS_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // target. The handlers from the outermost target are first in the list, and | 50 // target. The handlers from the outermost target are first in the list, and |
| 51 // the handlers on |this| are the last in the list. | 51 // the handlers on |this| are the last in the list. |
| 52 void GetPreTargetHandlers(EventHandlerList* list); | 52 void GetPreTargetHandlers(EventHandlerList* list); |
| 53 | 53 |
| 54 // Returns the list of handlers that should receive the event after the | 54 // Returns the list of handlers that should receive the event after the |
| 55 // target. The handlers from the outermost target are last in the list, and | 55 // target. The handlers from the outermost target are last in the list, and |
| 56 // the handlers on |this| are the first in the list. | 56 // the handlers on |this| are the first in the list. |
| 57 void GetPostTargetHandlers(EventHandlerList* list); | 57 void GetPostTargetHandlers(EventHandlerList* list); |
| 58 | 58 |
| 59 // Overridden from EventHandler: | 59 // Overridden from EventHandler: |
| 60 virtual EventResult OnKeyEvent(EventTarget* target, | 60 virtual EventResult OnKeyEvent(KeyEvent* event) OVERRIDE; |
| 61 KeyEvent* event) OVERRIDE; | 61 virtual EventResult OnMouseEvent(MouseEvent* event) OVERRIDE; |
| 62 virtual EventResult OnMouseEvent(EventTarget* target, | 62 virtual EventResult OnScrollEvent(ScrollEvent* event) OVERRIDE; |
| 63 MouseEvent* event) OVERRIDE; | 63 virtual TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; |
| 64 virtual EventResult OnScrollEvent(EventTarget* target, | 64 virtual EventResult OnGestureEvent(GestureEvent* event) OVERRIDE; |
| 65 ScrollEvent* event) OVERRIDE; | |
| 66 virtual TouchStatus OnTouchEvent(EventTarget* target, | |
| 67 TouchEvent* event) OVERRIDE; | |
| 68 virtual EventResult OnGestureEvent(EventTarget* target, | |
| 69 GestureEvent* event) OVERRIDE; | |
| 70 | 65 |
| 71 EventHandlerList pre_target_list_; | 66 EventHandlerList pre_target_list_; |
| 72 EventHandlerList post_target_list_; | 67 EventHandlerList post_target_list_; |
| 73 EventHandler* target_handler_; | 68 EventHandler* target_handler_; |
| 74 | 69 |
| 75 DISALLOW_COPY_AND_ASSIGN(EventTarget); | 70 DISALLOW_COPY_AND_ASSIGN(EventTarget); |
| 76 }; | 71 }; |
| 77 | 72 |
| 78 } // namespace ui | 73 } // namespace ui |
| 79 | 74 |
| 80 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_EVENTS_EVENT_TARGET_H_ | 75 #endif // UI_BASE_EVENTS_EVENT_CONSTANTS_EVENTS_EVENT_TARGET_H_ |
| OLD | NEW |