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

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

Issue 10964051: events: Clean up dispatching code for touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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_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
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_
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