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

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
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
70 virtual bool ProcessTouchEventForGesture(
71 const TouchEvent& event,
72 GestureConsumer* target) OVERRIDE;
73
74 virtual Gestures* ProcessTouchEventForGestureForOldAuraGR(
70 const TouchEvent& event, 75 const TouchEvent& event,
71 ui::EventResult result, 76 ui::EventResult result,
72 GestureConsumer* target) OVERRIDE; 77 GestureConsumer* target) OVERRIDE;
78
79 virtual ScopedVector<GestureEvent>* AckTouchEventForGesture(
80 ui::EventResult result,
81 GestureConsumer* target) OVERRIDE;
82
73 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) 83 virtual bool CleanupStateForConsumer(GestureConsumer* consumer)
74 OVERRIDE; 84 OVERRIDE;
75 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 85 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
76 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 86 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
77 87
78 // Overridden from ui::GestureSequenceDelegate. 88 // Overridden from ui::GestureSequenceDelegate.
79 virtual void DispatchPostponedGestureEvent(GestureEvent* event) OVERRIDE; 89 virtual void DispatchPostponedGestureEvent(GestureEvent* event) OVERRIDE;
80 90
81 // Overridden from GestureProviderAuraClient 91 // Overridden from GestureProviderAuraClient
82 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE; 92 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE;
(...skipping 19 matching lines...) Expand all
102 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 112 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
103 }; 113 };
104 114
105 // Provided only for testing: 115 // Provided only for testing:
106 EVENTS_EXPORT void SetGestureRecognizerForTesting( 116 EVENTS_EXPORT void SetGestureRecognizerForTesting(
107 GestureRecognizer* gesture_recognizer); 117 GestureRecognizer* gesture_recognizer);
108 118
109 } // namespace ui 119 } // namespace ui
110 120
111 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 121 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698