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

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

Issue 119323007: Add timestamps to synthesized events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove target variables in pinch; fix computation of total duration. 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
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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 21 matching lines...) Expand all
32 void Flush(base::TimeTicks timestamp); 32 void Flush(base::TimeTicks timestamp);
33 33
34 private: 34 private:
35 void StartGesture(const SyntheticGesture& gesture); 35 void StartGesture(const SyntheticGesture& gesture);
36 void StopGesture(const SyntheticGesture& gesture, 36 void StopGesture(const SyntheticGesture& gesture,
37 SyntheticGesture::Result result); 37 SyntheticGesture::Result result);
38 38
39 scoped_ptr<SyntheticGestureTarget> gesture_target_; 39 scoped_ptr<SyntheticGestureTarget> gesture_target_;
40 ScopedVector<SyntheticGesture> pending_gesture_queue_; 40 ScopedVector<SyntheticGesture> pending_gesture_queue_;
41 41
42 base::TimeTicks last_tick_time_;
43
44 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureController); 42 DISALLOW_COPY_AND_ASSIGN(SyntheticGestureController);
45 }; 43 };
46 44
47 } // namespace content 45 } // namespace content
48 46
49 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_ 47 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_SYNTHETIC_GESTURE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698