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

Unified Diff: content/port/browser/synthetic_gesture.h

Issue 62443007: Replace old with new synthetic gesture framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forward declare SyntheticGestureController. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/port/browser/synthetic_gesture.h
diff --git a/content/port/browser/synthetic_gesture.h b/content/port/browser/synthetic_gesture.h
deleted file mode 100644
index 4330d76c2161a6c04bcb4520c44c4db943154b2e..0000000000000000000000000000000000000000
--- a/content/port/browser/synthetic_gesture.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_
-#define CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/time/time.h"
-
-namespace content {
-
-class RenderWidgetHost;
-
-// This is a base class representing a single scroll gesture. These gestures are
-// paired with the rendering benchmarking system to (automatically) measure how
-// smoothnly chrome is responding to user input.
-class SyntheticGesture : public base::RefCounted<SyntheticGesture> {
- public:
-
- // When called, the gesture should compute its state at the provided timestamp
- // and send the right input events to the provided RenderWidgetHost to
- // simulate the gesture having run up to that point in time.
- //
- // This function should return true until the gesture is over. A false return
- // value will stop ticking the gesture and clean it up.
- virtual bool ForwardInputEvents(base::TimeTicks now,
- RenderWidgetHost* host) = 0;
- protected:
- friend class base::RefCounted<SyntheticGesture>;
- virtual ~SyntheticGesture() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PORT_BROWSER_SYNTHETIC_GESTURE_H_

Powered by Google App Engine
This is Rietveld 408576698