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

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

Issue 103173004: Target touches to the correct display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reset GR between test runs (caused local ASAN failure) Created 6 years, 11 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 21 matching lines...) Expand all
32 virtual ~GestureRecognizerImpl(); 32 virtual ~GestureRecognizerImpl();
33 33
34 std::vector<GestureEventHelper*>& helpers() { return helpers_; } 34 std::vector<GestureEventHelper*>& helpers() { return helpers_; }
35 35
36 // Overridden from GestureRecognizer 36 // Overridden from GestureRecognizer
37 virtual GestureConsumer* GetTouchLockedTarget( 37 virtual GestureConsumer* GetTouchLockedTarget(
38 const TouchEvent& event) OVERRIDE; 38 const TouchEvent& event) OVERRIDE;
39 virtual GestureConsumer* GetTargetForGestureEvent( 39 virtual GestureConsumer* GetTargetForGestureEvent(
40 const GestureEvent& event) OVERRIDE; 40 const GestureEvent& event) OVERRIDE;
41 virtual GestureConsumer* GetTargetForLocation( 41 virtual GestureConsumer* GetTargetForLocation(
42 const gfx::Point& location) OVERRIDE; 42 const gfx::Point& location, int source_device_id) OVERRIDE;
43 virtual void TransferEventsTo(GestureConsumer* current_consumer, 43 virtual void TransferEventsTo(GestureConsumer* current_consumer,
44 GestureConsumer* new_consumer) OVERRIDE; 44 GestureConsumer* new_consumer) OVERRIDE;
45 virtual bool GetLastTouchPointForTarget(GestureConsumer* consumer, 45 virtual bool GetLastTouchPointForTarget(GestureConsumer* consumer,
46 gfx::Point* point) OVERRIDE; 46 gfx::Point* point) OVERRIDE;
47 virtual void CancelActiveTouches(GestureConsumer* consumer) OVERRIDE; 47 virtual void CancelActiveTouches(GestureConsumer* consumer) OVERRIDE;
48 48
49 protected: 49 protected:
50 virtual GestureSequence* CreateSequence(GestureSequenceDelegate* delegate); 50 virtual GestureSequence* CreateSequence(GestureSequenceDelegate* delegate);
51 virtual GestureSequence* GetGestureSequenceForConsumer(GestureConsumer* c); 51 virtual GestureSequence* GetGestureSequenceForConsumer(GestureConsumer* c);
52 52
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl); 85 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImpl);
86 }; 86 };
87 87
88 // Provided only for testing: 88 // Provided only for testing:
89 EVENTS_EXPORT void SetGestureRecognizerForTesting( 89 EVENTS_EXPORT void SetGestureRecognizerForTesting(
90 GestureRecognizer* gesture_recognizer); 90 GestureRecognizer* gesture_recognizer);
91 91
92 } // namespace ui 92 } // namespace ui
93 93
94 #endif // UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_ 94 #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