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

Side by Side Diff: ui/base/gestures/gesture_recognizer.h

Issue 10365009: Adding Gesture Recognition to RenderWidgetHostViewWin (web client) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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_BASE_GESTURES_GESTURE_RECOGNIZER_H_ 5 #ifndef UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_
6 #define UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ 6 #define UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 20 matching lines...) Expand all
31 // Caller would be responsible for freeing up Gestures. 31 // Caller would be responsible for freeing up Gestures.
32 virtual Gestures* ProcessTouchEventForGesture(const TouchEvent& event, 32 virtual Gestures* ProcessTouchEventForGesture(const TouchEvent& event,
33 ui::TouchStatus status, 33 ui::TouchStatus status,
34 GestureConsumer* consumer) = 0; 34 GestureConsumer* consumer) = 0;
35 35
36 // Touch-events can be queued to be played back at a later time. The queues 36 // Touch-events can be queued to be played back at a later time. The queues
37 // are identified by the target window. 37 // are identified by the target window.
38 virtual void QueueTouchEventForGesture(GestureConsumer* consumer, 38 virtual void QueueTouchEventForGesture(GestureConsumer* consumer,
39 const TouchEvent& event) = 0; 39 const TouchEvent& event) = 0;
40 40
41 virtual bool IsQueueEmpty(GestureConsumer* consumer) = 0;
rjkroege 2012/05/04 15:42:46 need a comment saying what does this does.
42
41 // Process the touch-event in the queue for the window. Returns a list of 43 // Process the touch-event in the queue for the window. Returns a list of
42 // zero or more GestureEvents identified after processing the queueud 44 // zero or more GestureEvents identified after processing the queueud
43 // TouchEvent. Caller is responsible for freeing up Gestures. 45 // TouchEvent. Caller is responsible for freeing up Gestures.
44 virtual Gestures* AdvanceTouchQueue(GestureConsumer* consumer, 46 virtual Gestures* AdvanceTouchQueue(GestureConsumer* consumer,
45 bool processed) = 0; 47 bool processed) = 0;
46 48
47 // Flushes the touch event queue (or removes the queue) for the window. 49 // Flushes the touch event queue (or removes the queue) for the window.
48 virtual void FlushTouchQueue(GestureConsumer* consumer) = 0; 50 virtual void FlushTouchQueue(GestureConsumer* consumer) = 0;
49 51
50 // Return the window which should handle this TouchEvent, in the case where 52 // Return the window which should handle this TouchEvent, in the case where
(...skipping 11 matching lines...) Expand all
62 64
63 // For each touch on windows other than |capturer|, a cancel event 65 // For each touch on windows other than |capturer|, a cancel event
64 // is fired. These touches are then ignored until they are released 66 // is fired. These touches are then ignored until they are released
65 // and pressed again. 67 // and pressed again.
66 virtual void CancelNonCapturedTouches(GestureConsumer* capturer) = 0; 68 virtual void CancelNonCapturedTouches(GestureConsumer* capturer) = 0;
67 }; 69 };
68 70
69 } // namespace ui 71 } // namespace ui
70 72
71 #endif // UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ 73 #endif // UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698