Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: ui/base/events/event_target.h

Issue 10908127: events: Move EventTarget into Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/events/event_handler.h ('k') | ui/base/events/event_target.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/base/events/event_handler.h ('k') | ui/base/events/event_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698