summaryrefslogtreecommitdiffstats
path: root/content/port
diff options
context:
space:
mode:
authordominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-21 17:47:35 +0000
committerdominikg@chromium.org <dominikg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-21 17:47:35 +0000
commit9017d7856ea1f59a673ec8fcfd468674b4a2c008 (patch)
treed6a2defff791ff5c294bd6367401db7a481812a7 /content/port
parent9a67241862c036c172eca8b81f2e717b616471ae (diff)
downloadchromium_src-9017d7856ea1f59a673ec8fcfd468674b4a2c008.zip
chromium_src-9017d7856ea1f59a673ec8fcfd468674b4a2c008.tar.gz
chromium_src-9017d7856ea1f59a673ec8fcfd468674b4a2c008.tar.bz2
Replace old with new synthetic gesture framework.
- Remove current implementation of synthetic gestures. - Rename temporarily named classes and files of new synthetic gesture framework (e.g. SyntheticGestureNew -> SyntheticGesture). - Link up new implementation in browser and renderer. - Hook up synthetic gesture controller to input flushing in RWHI. - Update JavaScript front-end and Telemetry. BUG=297980 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236254 Review URL: https://codereview.chromium.org/62443007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r--content/port/browser/render_widget_host_view_port.h11
-rw-r--r--content/port/browser/synthetic_gesture.h36
2 files changed, 0 insertions, 47 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h
index bd13f73..fd8954f 100644
--- a/content/port/browser/render_widget_host_view_port.h
+++ b/content/port/browser/render_widget_host_view_port.h
@@ -270,17 +270,6 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView,
virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
InputEventAckState ack_result) = 0;
- // Asks the view to create a synthetic gesture that will be used to
- // simulate a user-initiated scroll.
- virtual SyntheticGesture* CreateSmoothScrollGesture(
- bool scroll_down, int pixels_to_scroll, int mouse_event_x,
- int mouse_event_y) = 0;
-
- // Asks the view to create a synthetic gesture that will be used to
- // simulate a user-initiated pinch-to-zoom.
- virtual SyntheticGesture* CreatePinchGesture(
- bool zoom_in, int pixels_to_move, int anchor_x, int anchor_y) = 0;
-
virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0;
virtual void SetScrollOffsetPinning(
bool is_pinned_to_left, bool is_pinned_to_right) = 0;
diff --git a/content/port/browser/synthetic_gesture.h b/content/port/browser/synthetic_gesture.h
deleted file mode 100644
index 4330d76..0000000
--- 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_