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

Side by Side Diff: ui/events/gestures/gesture_recognizer_impl.h

Issue 393953012: Eager Gesture Recognition on Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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/events/gestures/gesture_recognizer.h ('k') | ui/events/gestures/gesture_recognizer_impl.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_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 5 #ifndef UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
6 #define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 6 #define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ui::GestureSequenceDelegate* delegate); 59 ui::GestureSequenceDelegate* delegate);
60 60
61 private: 61 private:
62 // Sets up the target consumer for gestures based on the touch-event. 62 // Sets up the target consumer for gestures based on the touch-event.
63 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); 63 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer);
64 void CancelTouches(std::vector<std::pair<int, GestureConsumer*> >* touches); 64 void CancelTouches(std::vector<std::pair<int, GestureConsumer*> >* touches);
65 65
66 void DispatchGestureEvent(GestureEvent* event); 66 void DispatchGestureEvent(GestureEvent* event);
67 67
68 // Overridden from GestureRecognizer 68 // Overridden from GestureRecognizer
69 virtual Gestures* ProcessTouchEventForGesture( 69 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event,
70 GestureConsumer* consumer) OVERRIDE;
71
72 virtual Gestures* ProcessTouchEventPostDispatch(
70 const TouchEvent& event, 73 const TouchEvent& event,
71 ui::EventResult result, 74 ui::EventResult result,
72 GestureConsumer* target) OVERRIDE; 75 GestureConsumer* consumer) OVERRIDE;
76
77 virtual Gestures* ProcessTouchEventOnAsyncAck(
78 const TouchEvent& event,
79 ui::EventResult result,
80 GestureConsumer* consumer) OVERRIDE;
81
73 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) 82 virtual bool CleanupStateForConsumer(GestureConsumer* consumer)
74 OVERRIDE; 83 OVERRIDE;
75 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 84 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
76 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 85 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
77 86
78 // Overridden from ui::GestureSequenceDelegate. 87 // Overridden from ui::GestureSequenceDelegate.
79 virtual void DispatchPostponedGestureEvent(GestureEvent* event) OVERRIDE; 88 virtual void DispatchPostponedGestureEvent(GestureEvent* event) OVERRIDE;
80 89
81 // Overridden from GestureProviderAuraClient 90 // Overridden from GestureProviderAuraClient
82 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE; 91 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE;
(...skipping 19 matching lines...) Expand all
102 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 111 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
103 }; 112 };
104 113
105 // Provided only for testing: 114 // Provided only for testing:
106 EVENTS_EXPORT void SetGestureRecognizerForTesting( 115 EVENTS_EXPORT void SetGestureRecognizerForTesting(
107 GestureRecognizer* gesture_recognizer); 116 GestureRecognizer* gesture_recognizer);
108 117
109 } // namespace ui 118 } // namespace ui
110 119
111 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 120 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/events/gestures/gesture_recognizer.h ('k') | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698