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

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: Removed views dependency. 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 // Returns true if the touch queue is empty.
42 virtual bool IsQueueEmpty(GestureConsumer* consumer) = 0;
43
41 // Process the touch-event in the queue for the window. Returns a list of 44 // Process the touch-event in the queue for the window. Returns a list of
42 // zero or more GestureEvents identified after processing the queueud 45 // zero or more GestureEvents identified after processing the queueud
43 // TouchEvent. Caller is responsible for freeing up Gestures. 46 // TouchEvent. Caller is responsible for freeing up Gestures.
44 virtual Gestures* AdvanceTouchQueue(GestureConsumer* consumer, 47 virtual Gestures* AdvanceTouchQueue(GestureConsumer* consumer,
45 bool processed) = 0; 48 bool processed) = 0;
46 49
47 // Flushes the touch event queue (or removes the queue) for the window. 50 // Flushes the touch event queue (or removes the queue) for the window.
48 virtual void FlushTouchQueue(GestureConsumer* consumer) = 0; 51 virtual void FlushTouchQueue(GestureConsumer* consumer) = 0;
49 52
50 // Return the window which should handle this TouchEvent, in the case where 53 // Return the window which should handle this TouchEvent, in the case where
(...skipping 11 matching lines...) Expand all
62 65
63 // For each touch on windows other than |capturer|, a cancel event 66 // For each touch on windows other than |capturer|, a cancel event
64 // is fired. These touches are then ignored until they are released 67 // is fired. These touches are then ignored until they are released
65 // and pressed again. 68 // and pressed again.
66 virtual void CancelNonCapturedTouches(GestureConsumer* capturer) = 0; 69 virtual void CancelNonCapturedTouches(GestureConsumer* capturer) = 0;
67 }; 70 };
68 71
69 } // namespace ui 72 } // namespace ui
70 73
71 #endif // UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_ 74 #endif // UI_BASE_GESTURES_GESTURE_RECOGNIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698