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

Side by Side Diff: content/browser/renderer_host/input/synthetic_gesture_controller.h

Issue 1408213002: Add hooks for flushing input from BeginFrame dispatch on Aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build for real Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 22 matching lines...) Expand all
33 OnGestureCompleteCallback; 33 OnGestureCompleteCallback;
34 void QueueSyntheticGesture( 34 void QueueSyntheticGesture(
35 scoped_ptr<SyntheticGesture> synthetic_gesture, 35 scoped_ptr<SyntheticGesture> synthetic_gesture,
36 const OnGestureCompleteCallback& completion_callback); 36 const OnGestureCompleteCallback& completion_callback);
37 37
38 // Forward input events of the currently processed gesture. 38 // Forward input events of the currently processed gesture.
39 void Flush(base::TimeTicks timestamp); 39 void Flush(base::TimeTicks timestamp);
40 40
41 // To be called when all events generated from the current gesture have been 41 // To be called when all events generated from the current gesture have been
42 // fully flushed from the input pipeline (i.e., sent, processed and ack'ed). 42 // fully flushed from the input pipeline (i.e., sent, processed and ack'ed).
43 void OnDidFlushInput(); 43 void OnDidFlushAllInput();
44 44
45 private: 45 private:
46 void StartGesture(const SyntheticGesture& gesture); 46 void StartGesture(const SyntheticGesture& gesture);
47 void StopGesture(const SyntheticGesture& gesture, 47 void StopGesture(const SyntheticGesture& gesture,
48 const OnGestureCompleteCallback& completion_callback, 48 const OnGestureCompleteCallback& completion_callback,
49 SyntheticGesture::Result result); 49 SyntheticGesture::Result result);
50 50
51 scoped_ptr<SyntheticGestureTarget> gesture_target_; 51 scoped_ptr<SyntheticGestureTarget> gesture_target_;
52 scoped_ptr<SyntheticGesture::Result> pending_gesture_result_; 52 scoped_ptr<SyntheticGesture::Result> pending_gesture_result_;
53 53
(...skipping 26 matching lines...) Expand all
80 ScopedVector<SyntheticGesture> gestures_; 80 ScopedVector<SyntheticGesture> gestures_;
81 std::queue<OnGestureCompleteCallback> callbacks_; 81 std::queue<OnGestureCompleteCallback> callbacks_;
82 } pending_gesture_queue_; 82 } pending_gesture_queue_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureController); 84 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureController);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ 89 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698