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

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

Issue 503883004: Don't pass touches to gesture recognizer for async acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac build. Created 6 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Overridden from GestureRecognizer 62 // Overridden from GestureRecognizer
63 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event, 63 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event,
64 GestureConsumer* consumer) OVERRIDE; 64 GestureConsumer* consumer) OVERRIDE;
65 65
66 virtual Gestures* ProcessTouchEventPostDispatch( 66 virtual Gestures* ProcessTouchEventPostDispatch(
67 const TouchEvent& event, 67 const TouchEvent& event,
68 ui::EventResult result, 68 ui::EventResult result,
69 GestureConsumer* consumer) OVERRIDE; 69 GestureConsumer* consumer) OVERRIDE;
70 70
71 virtual Gestures* ProcessTouchEventOnAsyncAck( 71 virtual Gestures* ProcessTouchEventOnAsyncAck(
72 const TouchEvent& event,
73 ui::EventResult result, 72 ui::EventResult result,
74 GestureConsumer* consumer) OVERRIDE; 73 GestureConsumer* consumer) OVERRIDE;
75 74
76 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) 75 virtual bool CleanupStateForConsumer(GestureConsumer* consumer)
77 OVERRIDE; 76 OVERRIDE;
78 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 77 virtual void AddGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
79 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE; 78 virtual void RemoveGestureEventHelper(GestureEventHelper* helper) OVERRIDE;
80 79
81 // Overridden from GestureProviderAuraClient 80 // Overridden from GestureProviderAuraClient
82 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE; 81 virtual void OnGestureEvent(GestureEvent* event) OVERRIDE;
(...skipping 15 matching lines...) Expand all
98 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 97 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
99 }; 98 };
100 99
101 // Provided only for testing: 100 // Provided only for testing:
102 EVENTS_EXPORT void SetGestureRecognizerForTesting( 101 EVENTS_EXPORT void SetGestureRecognizerForTesting(
103 GestureRecognizer* gesture_recognizer); 102 GestureRecognizer* gesture_recognizer);
104 103
105 } // namespace ui 104 } // namespace ui
106 105
107 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 106 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698