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

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

Issue 718153002: Indicate whether a touch event will cause scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual GestureProviderAura* GetGestureProviderForConsumer( 50 virtual GestureProviderAura* GetGestureProviderForConsumer(
51 GestureConsumer* c); 51 GestureConsumer* c);
52 52
53 private: 53 private:
54 // Sets up the target consumer for gestures based on the touch-event. 54 // Sets up the target consumer for gestures based on the touch-event.
55 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer); 55 void SetupTargets(const TouchEvent& event, GestureConsumer* consumer);
56 56
57 void DispatchGestureEvent(GestureEvent* event); 57 void DispatchGestureEvent(GestureEvent* event);
58 58
59 // Overridden from GestureRecognizer 59 // Overridden from GestureRecognizer
60 bool ProcessTouchEventPreDispatch(const TouchEvent& event, 60 bool ProcessTouchEventPreDispatch(TouchEvent* event,
61 GestureConsumer* consumer) override; 61 GestureConsumer* consumer) override;
62 62
63 Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event, 63 Gestures* ProcessTouchEventPostDispatch(const TouchEvent& event,
64 ui::EventResult result, 64 ui::EventResult result,
65 GestureConsumer* consumer) override; 65 GestureConsumer* consumer) override;
66 66
67 Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event, 67 Gestures* ProcessTouchEventOnAsyncAck(const TouchEvent& event,
68 ui::EventResult result, 68 ui::EventResult result,
69 GestureConsumer* consumer) override; 69 GestureConsumer* consumer) override;
70 70
(...skipping 21 matching lines...) Expand all
92 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 92 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
93 }; 93 };
94 94
95 // Provided only for testing: 95 // Provided only for testing:
96 EVENTS_EXPORT void SetGestureRecognizerForTesting( 96 EVENTS_EXPORT void SetGestureRecognizerForTesting(
97 GestureRecognizer* gesture_recognizer); 97 GestureRecognizer* gesture_recognizer);
98 98
99 } // namespace ui 99 } // namespace ui
100 100
101 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 101 #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