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

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

Issue 469523003: Add the actual location coordinates to the touch cancel event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clone the state_point 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 gfx::PointF* point) OVERRIDE; 48 gfx::PointF* point) OVERRIDE;
49 virtual bool CancelActiveTouches(GestureConsumer* consumer) OVERRIDE; 49 virtual bool CancelActiveTouches(GestureConsumer* consumer) OVERRIDE;
50 50
51 protected: 51 protected:
52 virtual GestureProviderAura* GetGestureProviderForConsumer( 52 virtual GestureProviderAura* GetGestureProviderForConsumer(
53 GestureConsumer* c); 53 GestureConsumer* c);
54 54
55 private: 55 private:
56 // Sets up the target consumer for gestures based on the touch-event. 56 // Sets up the target consumer for gestures based on the touch-event.
57 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); 57 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer);
58 void CancelTouches(std::vector<std::pair<int, GestureConsumer*> >* touches);
59 58
60 void DispatchGestureEvent(GestureEvent* event); 59 void DispatchGestureEvent(GestureEvent* event);
61 60
62 // Overridden from GestureRecognizer 61 // Overridden from GestureRecognizer
63 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event, 62 virtual bool ProcessTouchEventPreDispatch(const TouchEvent& event,
64 GestureConsumer* consumer) OVERRIDE; 63 GestureConsumer* consumer) OVERRIDE;
65 64
66 virtual Gestures* ProcessTouchEventPostDispatch( 65 virtual Gestures* ProcessTouchEventPostDispatch(
67 const TouchEvent& event, 66 const TouchEvent& event,
68 ui::EventResult result, 67 ui::EventResult result,
(...skipping 29 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