Removed unused VideoCaptureCapability parameters.
[chromium-blink-merge.git] / content / port / browser / synthetic_gesture.h
blob4330d76c2161a6c04bcb4520c44c4db943154b2e
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_
6 #define CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/time/time.h"
11 namespace content {
13 class RenderWidgetHost;
15 // This is a base class representing a single scroll gesture. These gestures are
16 // paired with the rendering benchmarking system to (automatically) measure how
17 // smoothnly chrome is responding to user input.
18 class SyntheticGesture : public base::RefCounted<SyntheticGesture> {
19 public:
21 // When called, the gesture should compute its state at the provided timestamp
22 // and send the right input events to the provided RenderWidgetHost to
23 // simulate the gesture having run up to that point in time.
25 // This function should return true until the gesture is over. A false return
26 // value will stop ticking the gesture and clean it up.
27 virtual bool ForwardInputEvents(base::TimeTicks now,
28 RenderWidgetHost* host) = 0;
29 protected:
30 friend class base::RefCounted<SyntheticGesture>;
31 virtual ~SyntheticGesture() {}
34 } // namespace content
36 #endif // CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_